Skip to content

Commit 0f9589e

Browse files
committed
fix #803 : made it possible to export and read two or more Axis objects with the same name or anonymous using the HDF format
1 parent 84079b2 commit 0f9589e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/source/changes/version_0_32.rst.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,6 @@ Fixes
6161

6262
* fixed :py:obj:`zip_array_values()` and :py:obj:`zip_array_items()` functions not available
6363
when importing the entire larray library as ``from larray import *`` (closes :issue:`816`).
64+
65+
* fixed wrong axes and groups names when loading a session from an HDF file
66+
(closes :issue:`803`).

larray/inout/hdf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,8 @@ def _read_item(self, key, type, *args, **kwargs):
132132
hdf_key = '/' + key
133133
elif type == 'Axis':
134134
hdf_key = '__axes__/' + key
135-
kwargs['name'] = key
136135
elif type == 'Group':
137136
hdf_key = '__groups__/' + key
138-
kwargs['name'] = key
139137
else:
140138
raise TypeError()
141139
return read_hdf(self.handle, hdf_key, *args, **kwargs)

0 commit comments

Comments
 (0)