Skip to content

Commit

Permalink
Merge branch 'Photon-HDF5:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
harripd authored Jun 18, 2024
2 parents 08e99dc + df5f5a5 commit 16a1e37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phconvert/hdf5.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ def _convert_scalar_item(item):
if not np.isscalar(item['value']):
try:
# sequences are converted to array then to scalar
scalar_value = np.asscalar(np.asarray(item['value']))
scalar_value = np.asarray(item['value']).item()
except ValueError:
raise Invalid_PhotonHDF5('Cannot convert "%s" to scalar.'
% item['meta_path'])
Expand Down

0 comments on commit 16a1e37

Please sign in to comment.