Reading *.zspy fails with KeyError #304
-
Describe the bugDuring the lesson 7. at EMC2024 - hyperspy workshop, I tried to load the *.zspy data file and error popped up as below.
Detailed error message is at additional context. To ReproduceSetup the environment similar to organizer suggested way for advanced user in workshop repository
at visual studio with hyperspy_EMC2024 env import hyperspy.api as hs
hs.__version__ ##2.1.1
s = hs.load("stem_holz_data.zspy", lazy=True) And the load function failed and error popped up. Expected behaviorAs lecturer, the data is loaded. Python environement:
Additional contextI checked at jupyter lab, but the result was same. Whole error message below the main error message.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It could be that the data is corrupted. Can you check that the folder |
Beta Was this translation helpful? Give feedback.
-
Dear @ericpre , |
Beta Was this translation helpful? Give feedback.
It could be that the data is corrupted.
Can you check that the folder
stem_holz_data.zspy\Experiments\fpd_data\original_metadata
exists for this dataset? Some MS windows version have a maximum path length and this could be that when you extracted the file, you hit this limit. If so, extract the file somewhere else with a shorter base path or enable long path.