Skip to content
Snippets Groups Projects
Commit b84089ae authored by Wernle, Alexandra Nicole's avatar Wernle, Alexandra Nicole
Browse files

Making attributes Optional in pydantic style.

parent 000a7ef5
No related branches found
No related tags found
1 merge request!344New MetadataAlgorithm, SpikesAlgorithm, and flag-spikes application
......@@ -18,13 +18,13 @@ class SpikesAlgorithm(MetadataAlgorithm):
Attributes
----------
window_size: int
Size of the rolling window for dynamic alignment (no shrinking or padding).
Size of the rolling window for dynamic alignment (no shrinking or padding). Defaults to 1000.
threshold: int
Threshold for spike detection (threshold * sigma).
Threshold for spike detection (threshold * sigma). Defaults to 6.
"""
window_size: int
threshold: int
window_size: Optional[int] = 1000
threshold: Optional[int] = 6
def _despike(
self, signal: Trace, timestamps: List[UTCDateTime]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment