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

Rewinding the idea of grouping flags by day.

parent 98b0441b
No related branches found
No related tags found
1 merge request!292New flag metadata class
......@@ -25,8 +25,8 @@ class Flag(BaseModel):
```
automatic_flag = Metadata(
created_by='ex_algorithm',
start_time=UTCDateTime('2023-01-01T00:00:00'),
end_time=UTCDateTime('2023-01-01T23:59:59'),
start_time=UTCDateTime('2023-01-01T03:05:10'),
end_time=UTCDateTime('2023-01-01T03:05:11'),
network='NT',
station='BOU',
channel='BEU',
......@@ -35,8 +35,6 @@ class Flag(BaseModel):
priority=1,
data_valid=False,
metadata= Spikes{
"starttime": "2023-01-01T03:05:00",
"endtime": "2023-01-01T03:07:00",
"channels": "F",
"description": "Spike in magnetic field strength",
"field_work": false,
......@@ -46,8 +44,6 @@ class Flag(BaseModel):
```
"""
starttime: UTCDateTime = None
endtime: UTCDateTime = None
channels: Union[ChannelType, List[ChannelType]]
description: str = Field(..., description="Description of the flag")
field_work: bool = Field(..., description="Flag signaling field work")
......
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