mirror of
https://github.com/macaodha/batdetect2.git
synced 2025-06-29 14:41:58 +02:00
Attend test warnings
This commit is contained in:
parent
c276230bff
commit
bfcab0331e
@ -93,7 +93,7 @@ def convert_xr_dataset_to_raw_prediction(
|
||||
"""
|
||||
detections = []
|
||||
|
||||
for det_num in range(detection_dataset.dims["detection"]):
|
||||
for det_num in range(detection_dataset.sizes["detection"]):
|
||||
det_info = detection_dataset.sel(detection=det_num)
|
||||
|
||||
geom = geometry_builder(
|
||||
|
@ -8,7 +8,7 @@ from batdetect2.detector import parameters
|
||||
from batdetect2.utils import audio_utils, detector_utils
|
||||
|
||||
|
||||
@given(duration=st.floats(min_value=0.1, max_value=2))
|
||||
@given(duration=st.floats(min_value=0.1, max_value=1))
|
||||
def test_can_compute_correct_spectrogram_width(duration: float):
|
||||
samplerate = parameters.TARGET_SAMPLERATE_HZ
|
||||
params = parameters.DEFAULT_SPECTROGRAM_PARAMETERS
|
||||
|
@ -373,7 +373,7 @@ def test_extract_detection_xr_dataset_empty(
|
||||
|
||||
assert isinstance(actual_dataset, xr.Dataset)
|
||||
assert "detection" in actual_dataset.dims
|
||||
assert actual_dataset.dims["detection"] == 0
|
||||
assert actual_dataset.sizes["detection"] == 0
|
||||
|
||||
assert "scores" in actual_dataset
|
||||
assert actual_dataset["scores"].dims == ("detection",)
|
||||
|
Loading…
Reference in New Issue
Block a user