Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/post_processing/dataclass/detection_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ def from_yaml(
cls,
file: Path,
) -> DetectionFilter | list[DetectionFilter]:
"""Return a DetectionFilter object from a yaml file.
"""Return a DetectionFilter object from a YAML file.

Parameters
----------
file: Path
The path to a yaml configuration file.
The path to a YAML configuration file.

Returns
-------
Expand Down Expand Up @@ -86,7 +86,7 @@ def from_dict(
"""
filters = []
for detection_file, filters_dict in parameters.items():
df_preview = read_dataframe(Path(detection_file), nrows=5)
df_preview = read_dataframe(Path(detection_file), rows=5)
filters_dict["timebin_origin"] = Timedelta(
max(df_preview["end_time"]),
"s",
Expand Down
Loading