Skip to content

Commit

Permalink
Update src/nwbinspector/checks/time_series.py
Browse files Browse the repository at this point in the history
Co-authored-by: Cody Baker <[email protected]>
  • Loading branch information
alessandratrapani and CodyCBakerPhD authored Jul 31, 2024
1 parent 87a1379 commit 618f2ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nwbinspector/checks/time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def check_timestamps_ascending(time_series: TimeSeries, nelems=200):
def check_timestamps_with_nans(time_series: TimeSeries):
"""Check if there are NaN values in the timestamps array."""
if time_series.timestamps is not None and np.isnan(time_series.timestamps).any():
return InspectorMessage(f"{time_series.name} timestamps contain NaN values.")
return InspectorMessage(message=f"{time_series.name} timestamps contain NaN values.")


@register_check(importance=Importance.BEST_PRACTICE_SUGGESTION, neurodata_type=TimeSeries)
Expand Down

0 comments on commit 618f2ce

Please sign in to comment.