Skip to content

Commit 7433ba3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 55dcb2e commit 7433ba3

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

tests/fixtures/napari.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,7 @@ def _valid_bboxes_path_and_ds_with_localised_nans(
176176
if nan_location["time"] == "start":
177177
time_point = 0
178178
elif nan_location["time"] == "middle":
179-
time_point = ds.coords["time"][
180-
ds.coords["time"].shape[0] // 2
181-
]
179+
time_point = ds.coords["time"][ds.coords["time"].shape[0] // 2]
182180
elif nan_location["time"] == "end":
183181
time_point = ds.coords["time"][-1]
184182

tests/test_unit/test_napari_plugin/test_data_loader_widget.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -589,9 +589,7 @@ def test_dimension_slider_with_nans_bboxes(
589589
"time": nan_time_location,
590590
"individuals": nan_individuals,
591591
}
592-
file_path, ds = valid_bboxes_path_and_ds_with_localised_nans(
593-
nan_location
594-
)
592+
file_path, ds = valid_bboxes_path_and_ds_with_localised_nans(nan_location)
595593

596594
# Define the expected frame index with the NaN value
597595
if nan_location["time"] == "start":

0 commit comments

Comments
 (0)