Skip to content

Commit

Permalink
Merge pull request #66 from pycroscopy/gerd-sidpy.11.1
Browse files Browse the repository at this point in the history
Gerd sidpy.11.1
  • Loading branch information
gduscher authored Dec 17, 2022
2 parents f23aaac + 24d867c commit a239944
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pyNSID/__version__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = '0.0.5'
time = '2022-12-02 16:55:25'
version = '0.0.6'
time = '2022-12-16 16:55:25'
4 changes: 3 additions & 1 deletion pyNSID/io/hdf_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ def read_h5py_dataset(dset):
raise TypeError('can only read NSID datasets, not general one, try to import with from_array')

# create vanilla dask array
dataset = Dataset.from_array(np.array(dset))
data_array = np.empty(dset.shape)
dset.read_direct(data_array)
dataset = Dataset.from_array(data_array)

if 'title' in dset.attrs:
dataset.title = dset.attrs['title']
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
'Operating System :: OS Independent',
'Programming Language :: Cython',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Scientific/Engineering :: Information Analysis'],
keywords=['imaging', 'spectra', 'multidimensional', 'data format',
Expand Down

0 comments on commit a239944

Please # to comment.