Skip to content

Commit

Permalink
imp: Compatibility with 32-bits CPU architectures (#555)
Browse files Browse the repository at this point in the history
adds int64 as an accepted dtype
  • Loading branch information
emollier committed Sep 21, 2022
1 parent d222ca3 commit b0c6302
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qiime2/metadata/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@ class NumericMetadataColumn(MetadataColumn):

@classmethod
def _is_supported_dtype(cls, dtype):
return dtype == 'float' or dtype == 'int'
return dtype == 'float' or dtype == 'int' or dtype == 'int64'

@classmethod
def _normalize_(cls, series):
Expand Down
2 changes: 1 addition & 1 deletion qiime2/metadata/tests/test_metadata_column.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class DummyMetadataColumn(MetadataColumn):

@classmethod
def _is_supported_dtype(cls, dtype):
return dtype == 'float' or dtype == 'int'
return dtype == 'float' or dtype == 'int' or dtype == 'int64'

@classmethod
def _normalize_(cls, series):
Expand Down

0 comments on commit b0c6302

Please sign in to comment.