Skip to content

Commit 2557db3

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 44ebd39 commit 2557db3

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
@@ -58,3 +58,6 @@ Fixes
5858

5959
* fixed the :py:obj:`Array.reindex()` printing a spurious warning message when the
6060
`axes_to_reindex` argument is the name of the axis to reindex (closes :issue:`812`)
61+
62+
* fixed reading/exporting sessions containing two or more axes/groups
63+
with the same name (or anonymous) from/to HDF files (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)