Skip to content

Commit

Permalink
Merge pull request #155 from mtremmel/finder_id_fix
Browse files Browse the repository at this point in the history
fix issues with unsigned integer class
  • Loading branch information
apontzen authored Oct 11, 2021
2 parents 072c80a + af2b7a4 commit 1d7e837
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tangos/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
from .query import *
from . import properties

__version__ = '1.3'
__version__ = '1.3.1'
5 changes: 4 additions & 1 deletion tangos/core/halo.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ def process_bind_param(self, value, dialect):

def process_result_value(self, value, dialect):
if value:
return np.frombuffer(value, dtype=np.uint64)[0]
if type(value) is bytes:
return np.frombuffer(value, dtype=np.uint64)[0]
else:
return np.int64(value).astype(np.uint64)
else:
return None

Expand Down

0 comments on commit 1d7e837

Please sign in to comment.