From d88cefd341676d95a58773d8c4ad65726ef74c50 Mon Sep 17 00:00:00 2001
From: Alex Wernle <awernle@usgs.gov>
Date: Wed, 16 Oct 2024 13:21:27 -0600
Subject: [PATCH] Changed channel argument to str. Changed some default values.

---
 geomagio/processing/flag_spikes.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/geomagio/processing/flag_spikes.py b/geomagio/processing/flag_spikes.py
index 57b74f1b..e91d8bf5 100644
--- a/geomagio/processing/flag_spikes.py
+++ b/geomagio/processing/flag_spikes.py
@@ -2,7 +2,7 @@ import os
 from datetime import datetime
 
 import typer
-from typing import Optional, List
+from typing import Optional
 
 from ..metadata import Metadata, MetadataFactory
 from ..algorithm.SpikesAlgorithm import SpikesAlgorithm
@@ -10,8 +10,8 @@ from ..algorithm.SpikesAlgorithm import SpikesAlgorithm
 
 def flag_spikes(
     observatory: str = typer.Option(..., help="Observatory code"),
-    channels: List[str] = typer.Option(
-        default=["F"], help="Channels to despike, default is F."
+    channels: str = typer.Option(
+        default=["F"], help="Channels to despike, default is F. Example input: HEZF"
     ),
     starttime: datetime = typer.Option(
         default=None,
@@ -22,11 +22,11 @@ def flag_spikes(
         help="End time for metadata, default is None. CLI example usage: --endtime '2024-01-01' ",
     ),
     window_size: Optional[int] = typer.Option(
-        default=10,
+        default=1000,
         help="Window size for despike algorithm",
     ),
     threshold: Optional[int] = typer.Option(
-        default=3,
+        default=6,
         help="Threshold for spike size",
     ),
     metadata_token: str = typer.Option(
-- 
GitLab