You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ejolly, just tried using the new hdf5 loading for an older file and encoutered this error message:
---------------------------------------------------------------------------TypeErrorTraceback (mostrecentcalllast)
CellIn[33], line1612f=file_list[0]
14sub=os.path.basename(f).split('_')[0]
--->16fmri_data=Brain_Data(f)
File~/Github/nltools/nltools/data/brain_data.py:206, inBrain_Data.__init__(self, data, Y, X, mask, **kwargs)
203else:
204# Load X and Y dataframes205withpd.HDFStore(to_load, "r") asf:
-->206self.X=f["X"]
207self.Y=f["Y"]
209# Load data and masker stuffsFile~/opt/anaconda3/lib/python3.11/site-packages/pandas/io/pytables.py:602, inHDFStore.__getitem__(self, key)
601def__getitem__(self, key: str):
-->602returnself.get(key)
File~/opt/anaconda3/lib/python3.11/site-packages/pandas/io/pytables.py:813, inHDFStore.get(self, key)
811ifgroupisNone:
812raiseKeyError(f"No object named {key} in the file")
-->813returnself._read_group(group)
File~/opt/anaconda3/lib/python3.11/site-packages/pandas/io/pytables.py:1878, inHDFStore._read_group(self, group)
1877def_read_group(self, group: Node):
->1878s=self._create_storer(group)
1879s.infer_axes()
1880returns.read()
File~/opt/anaconda3/lib/python3.11/site-packages/pandas/io/pytables.py:1752, inHDFStore._create_storer(self, group, format, value, encoding, errors)
1750tt="generic_table"1751else:
->1752raiseTypeError(
1753"cannot create a storer if the object is not existing "1754"nor a value are passed"1755 )
1756else:
1757ifisinstance(value, Series):
TypeError: cannotcreateastoreriftheobjectisnotexistingnoravaluearepassed
I don't believe there should be any metadata stored in these files. Is this something is simple as just checking and initializing with an empty value?
The text was updated successfully, but these errors were encountered:
@ejolly , I know @nirjacoby has also encountered this issue. Let us know if there is anything we can do to help fix it. It might make sense for you to take the lead on this one.
@ejolly, just tried using the new hdf5 loading for an older file and encoutered this error message:
I don't believe there should be any metadata stored in these files. Is this something is simple as just checking and initializing with an empty value?
The text was updated successfully, but these errors were encountered: