Skip to content

Commit

Permalink
Comment linting
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 authored Jun 18, 2024
1 parent da99a89 commit 14970e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/spikeinterface/core/core_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,11 @@ def default(self, obj):
if isinstance(obj, np.generic):
return obj.item()

# # Standard numpy dtypes like np.dtype('int32") are transformed this way
# Standard numpy dtypes like np.dtype('int32") are transformed this way
if isinstance(obj, np.dtype):
return np.dtype(obj).name

# This will transform to a string canonical representation of the dtype (e.g. np.int32 -> 'int32')

if isinstance(obj, type) and issubclass(obj, np.generic):
return np.dtype(obj).name

Expand Down

0 comments on commit 14970e1

Please sign in to comment.