Skip to content

Commit

Permalink
np2: io.alsep manual upcast uint8>int64 before bitshifting etc
Browse files Browse the repository at this point in the history
  • Loading branch information
megies committed May 24, 2024
1 parent 3772acb commit ffb326b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion obspy/io/alsep/pse/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class PseFrame(object):
def __init__(self, frame, _is_old_format):
self.data = frame
self.data = np.require(frame, dtype=np.int64)
self._is_old_format = _is_old_format
# Frame header parameters
self.software_time_flag = None
Expand Down
2 changes: 1 addition & 1 deletion obspy/io/alsep/wt/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class _WtFrame(object):

def __init__(self, frame):
self.data = frame
self.data = np.require(frame, dtype=np.int64)
# Frame header parameters
self.flag_bit = None
self.msec_of_year = None
Expand Down

0 comments on commit ffb326b

Please sign in to comment.