Skip to content

Commit

Permalink
Update load_astropy.py -- typo
Browse files Browse the repository at this point in the history
  • Loading branch information
telegraphic authored Mar 31, 2024
1 parent 4de0227 commit 3534a9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hickle/loaders/load_astropy.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def create_astropy_time(py_obj, h_group, name, **kwargs):
# Must be encoded into bytes.
if 'str' in py_obj.value.dtype.name:
# 2024.03.31 - Convert both big and little endians to |S dtype
bytes_dtype_str = py_obj.value.dtype.str.replace('<U', '|S').replace('|S', '>U')
bytes_dtype_str = py_obj.value.dtype.str.replace('<U', '|S').replace('>U', '|S')
d = h_group.create_dataset(
name,
data = np.array(py_obj.value.astype(bytes_dtype_str)),
Expand Down

0 comments on commit 3534a9c

Please sign in to comment.