Skip to content

Commit 539d25e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4c06957 commit 539d25e

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

src/nwbinspector/checks/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@
7575
check_table_time_columns_are_not_negative,
7676
check_table_values_for_dict,
7777
check_time_interval_time_columns,
78-
check_time_intervals_stop_after_start,
7978
check_time_intervals_duration,
79+
check_time_intervals_stop_after_start,
8080
)
8181
from ._time_series import (
8282
check_data_orientation,

src/nwbinspector/checks/_tables.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
)
1919

2020
NELEMS = 200
21-
MAX_DURATION = 3600 * 24 * 365.25 # default: 1 year
21+
MAX_DURATION = 3600 * 24 * 365.25 # default: 1 year
2222

2323

2424
@register_check(importance=Importance.CRITICAL, neurodata_type=DynamicTableRegion)
@@ -295,7 +295,6 @@ def check_table_time_columns_are_not_negative(table: DynamicTable) -> Optional[I
295295
return None
296296

297297

298-
299298
@register_check(importance=Importance.CRITICAL, neurodata_type=TimeIntervals)
300299
def check_time_intervals_duration(
301300
time_intervals: TimeIntervals, duration_threshold: float = MAX_DURATION
@@ -352,5 +351,3 @@ def check_time_intervals_duration(
352351
)
353352
)
354353
return None
355-
356-

tests/unit_tests/test_tables.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
check_table_time_columns_are_not_negative,
1919
check_table_values_for_dict,
2020
check_time_interval_time_columns,
21-
check_time_intervals_stop_after_start,
2221
check_time_intervals_duration,
22+
check_time_intervals_stop_after_start,
2323
)
2424

2525

@@ -544,4 +544,3 @@ def test_check_time_intervals_duration_pass_custom_threshold():
544544
# Should pass with 300 second threshold
545545
result = check_time_intervals_duration(table, duration_threshold=300.0)
546546
assert result is None
547-

0 commit comments

Comments
 (0)