Skip to content

Commit

Permalink
check_extent added numpy type
Browse files Browse the repository at this point in the history
  • Loading branch information
astudenova committed Oct 8, 2024
1 parent b3b0a20 commit 2eb28ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meegsim/_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def check_extents(extents, n_sources):
for extent in extents:
if extent is not None:
# Check if each extent is a number
if not isinstance(extent, (int, float)):
if not isinstance(extent, (int, float, np.integer, np.floating)):
raise ValueError(f"Extent {extent} must be a number.")

# Check if each extent is positive
Expand Down

0 comments on commit 2eb28ef

Please sign in to comment.