Skip to content

Commit 9580440

Browse files
committed
even before the big LArray to Array renaming, the type attribute written in hdf files was "Array", files with an "LArray" type do not exist
1 parent 3e6d798 commit 9580440

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

larray/inout/hdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def read_hdf(filepath_or_buffer, key, fill_value=nan, na=nan, sort_rows=False, s
7676
# for backward compatibility but any object read from an hdf file should have an attribute 'type'
7777
_type = attrs.type if 'type' in attrs else 'Array'
7878
_meta = attrs.metadata if 'metadata' in attrs else None
79-
if _type in ['Array', 'LArray']:
79+
if _type == 'Array':
8080
# cartesian product is not necessary if the array was written by LArray
8181
cartesian_prod = writer != 'LArray'
8282
res = df_asarray(pd_obj, sort_rows=sort_rows, sort_columns=sort_columns, fill_value=fill_value,

0 commit comments

Comments
 (0)