Skip to content

Commit ed293af

Browse files
authored
Merge pull request #92 from mathieudpnt/main
DetectionFilter stale arg
2 parents 07b672b + 7f13f3a commit ed293af

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/post_processing/dataclass/detection_filter.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@
1515
from pandas import Timedelta, Timestamp
1616

1717
from post_processing.utils.filtering_utils import (
18-
get_timezone,
1918
read_dataframe,
2019
)
2120

2221
if TYPE_CHECKING:
2322
from collections.abc import Iterable
24-
from datetime import tzinfo
2523

2624

2725
@dataclass(frozen=True)
@@ -33,7 +31,6 @@ class DetectionFilter:
3331
timebin_new: Timedelta = None
3432
begin: Timestamp | None = None
3533
end: Timestamp | None = None
36-
timezone: tzinfo = None
3734
annotator: str | Iterable[str] | None = None
3835
annotation: str | Iterable[str] | None = None
3936
timestamp_file: Path | None = None
@@ -91,7 +88,6 @@ def from_dict(
9188
max(df_preview["end_time"]),
9289
"s",
9390
)
94-
filters_dict["timezone"] = get_timezone(df_preview)
9591
filters_dict["detection_file"] = Path(detection_file)
9692
if filters_dict.get("timebin_new"):
9793
filters_dict["timebin_new"] = Timedelta(

0 commit comments

Comments
 (0)