Skip to content

new error with store.get_extra_data() #24

Description

@vcorbit

Hi, I recently re-installed imgstore in a new conda environment, and I am now having issues running the get_extra_data() function. I get an error like this when I try to run it directly in Spyder, or indirectly via plot_interactive.py in a conda window:

(imgstore) C:\Users\vlcor\Desktop\imgstore\examples>python plot_interactive.py W:/Victoria/A69BLinearTrack/PuffCPA/puffcpatest_vglut6l_20220613_121106.17458173
Traceback (most recent call last):
File "plot_interactive.py", line 23, in
df = store.get_extra_data(ignore_corrupt_chunks=True)
File "C:\Users\vlcor.conda\envs\imgstore\lib\site-packages\imgstore\stores.py", line 455, in get_extra_data
dfs.append(motif_extra_data_h5_to_df(path))
File "C:\Users\vlcor.conda\envs\imgstore\lib\site-packages\imgstore\util.py", line 185, in motif_extra_data_h5_to_df
datasets = [s.strip() for s in f.attrs['datasets'].decode('ascii').split(',')]
AttributeError: 'str' object has no attribute 'decode'

I used to have no issues running this function in my previous version of imgstore, so I am pretty sure the code I'm using is okay... here's the snip I've been trying to run in Spyder:

from imgstore import new_for_filename
import imgstore
datafolder = r'W:\Victoria\A69BLinearTrack\PuffCPA\puffcpatest_vglut2_20220613_100607.17458173'
metapath = datafolder + '\metadata.yaml'
store = new_for_filename(metapath)
extradata = store.get_extra_data()

Any help would be very appreciated! Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions