Skip to content

Commit

Permalink
Merge pull request #771 from slaclab/issue770
Browse files Browse the repository at this point in the history
Fixing deprecated numpy.int call after numpy upgrade.
  • Loading branch information
swh76 authored May 29, 2023
2 parents 434811b + 0d7843d commit 4aa21f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/pysmurf/client/util/smurf_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2508,10 +2508,10 @@ def hex_string_to_int(self, s):
Returns
-------
i : numpy.int
i : numpy.int64
The 64 bit int.
"""
return np.int(''.join([chr(x) for x in s]),0)
return np.int64(int(''.join([chr(x) for x in s]),0))


def int_to_hex_string(self, i):
Expand Down

0 comments on commit 4aa21f9

Please sign in to comment.