Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
weygoldt committed Jan 27, 2025
1 parent dcb29c8 commit a39a608
Show file tree
Hide file tree
Showing 3 changed files with 1,084 additions and 953 deletions.
3 changes: 2 additions & 1 deletion chirpdetector/chirpdetector.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ def train(config_path: pathlib.Path, mode: str) -> None:
)
def detect(path: pathlib.Path, make_training_data: bool) -> None:
"""Detect chirps on a spectrogram."""
detect_cli(path, make_training_data)
# detect_cli(path, make_training_data)
detect_cli(path)


#
Expand Down
5 changes: 4 additions & 1 deletion chirpdetector/detection/detect_chirps.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def convert_detections(
return out_df.reset_index(drop=True)


def detect_cli(input_path: pathlib.Path, make_training_data: bool) -> None:
def detect_cli(input_path: pathlib.Path) -> None:
"""Terminal interface for the detection function.
Parameters
Expand Down Expand Up @@ -282,6 +282,9 @@ def detect_cli(input_path: pathlib.Path, make_training_data: bool) -> None:

good_datasets = []
for dataset in datasets:
# temporary fix for new competition data:
dataset = dataset / "recordings"

# check if .raw or .wav file is in dir
checktypes = ["raw", "wav"]
filenames = [str(file.name) for file in dataset.iterdir()]
Expand Down
Loading

0 comments on commit a39a608

Please sign in to comment.