Skip to content

Commit

Permalink
Merge pull request #210 from NeurodataWithoutBorders/check_angle
Browse files Browse the repository at this point in the history
[Bug] fix check_compass decorator
  • Loading branch information
CodyCBakerPhD authored May 11, 2022
2 parents 9c84959 + 6bc117c commit dd1b937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nwbinspector/checks/behavior.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def check_spatial_series_dims(spatial_series: SpatialSeries):
)


@register_check(importance=Importance.BEST_PRACTICE_VIOLATION, neurodata_type=SpatialSeries)
@register_check(importance=Importance.BEST_PRACTICE_VIOLATION, neurodata_type=CompassDirection)
def check_compass_direction_unit(compass_direction: CompassDirection):
for spatial_series in compass_direction.spatial_series.values():
if spatial_series.unit not in ("degrees", "radians"):
Expand Down

0 comments on commit dd1b937

Please sign in to comment.