Skip to content

Commit

Permalink
Merge pull request #202 from jadball/master
Browse files Browse the repository at this point in the history
Change from 32-bit to 64-bit for int and float in HDF colfile
  • Loading branch information
jadball authored Jan 18, 2024
2 parents 68b9e8d + cf909f4 commit 1d7ac67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ImageD11/columnfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,9 @@ def colfile_to_hdf( colfile, hdffile, name=None, compression=None,
g.attrs['ImageD11_type'] = 'peaks'
for t in c.titles:
if t in INTS:
ty = np.int32
ty = np.int64
else:
ty = np.float32
ty = np.float64
# print "adding",t,ty
dat = getattr(c, t).astype( ty )
if t in list(g.keys()):
Expand Down Expand Up @@ -534,9 +534,9 @@ def colfileobj_to_hdf( cf, hdffile, name=None):
g.attrs['ImageD11_type'] = 'peaks'
for t in cf.titles:
if t in INTS:
ty = np.int32
ty = np.int64
else:
ty = np.float32
ty = np.float64
g.create_dataset( t, data = getattr(cf, t).astype( ty ) )
h.close()

Expand Down

0 comments on commit 1d7ac67

Please sign in to comment.