Skip to content

Commit

Permalink
Updated legacy v3 to v3.4.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
1313e committed Jul 28, 2020
1 parent e34d007 commit 861e4ae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hickle/legacy_v3/__version__.py
Expand Up @@ -10,4 +10,4 @@

# %% VERSIONS
# Default/Latest/Current version
__version__ = '3.4.7'
__version__ = '3.4.8'
1 change: 1 addition & 0 deletions hickle/legacy_v3/hickle.py
Expand Up @@ -171,6 +171,7 @@ def file_opener(f, mode='r', track_times=True):
if isinstance(f, (file, io.TextIOWrapper, io.BufferedWriter)):
filename, mode = f.name, f.mode
f.close()
mode = mode.replace('b', '')
h5f = h5.File(filename, mode)
elif isinstance(f, string_like_types):
filename = f
Expand Down
4 changes: 2 additions & 2 deletions hickle/legacy_v3/loaders/load_astropy.py
Expand Up @@ -55,7 +55,7 @@ def create_astropy_skycoord(py_obj, h_group, call_id=0, **kwargs):
# kwarg compression etc does not work on scalars
lat = py_obj.data.lat.value
lon = py_obj.data.lon.value
dd = np.column_stack((lon, lat))
dd = np.stack((lon, lat), axis=-1)

d = h_group.create_dataset('data_%i' % call_id, data=dd,
dtype='float64') #, **kwargs)
Expand Down Expand Up @@ -171,7 +171,7 @@ def load_astropy_skycoord_dataset(h_node):
py_type, data = get_type_and_data(h_node)
lon_unit = h_node.attrs["lon_unit"][0]
lat_unit = h_node.attrs["lat_unit"][0]
q = SkyCoord(data[:,0], data[:, 1], unit=(lon_unit, lat_unit))
q = SkyCoord(data[..., 0], data[..., 1], unit=(lon_unit, lat_unit))
return q

def load_astropy_constant_dataset(h_node):
Expand Down
Binary file not shown.

0 comments on commit 861e4ae

Please sign in to comment.