Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

re-adding dictionaries #90

Open
lenz-f opened this issue Feb 9, 2021 · 0 comments
Open

re-adding dictionaries #90

lenz-f opened this issue Feb 9, 2021 · 0 comments

Comments

@lenz-f
Copy link

lenz-f commented Feb 9, 2021

When running the following simple single-shot routine called Example:

from lyse import *

run = Run(path)
run.save_result('result',{'a':1,'b':2})

the result is getting stored in the DataFrame to column ('Example','result') as {'a':1,'b':2}.
Capture

After removing and re-adding one shot, the data is then stored as column ('Example','result','a') containing 1 and column ('Example','result','b') containing 2.
Capture1

I think this is mostly caused by storing the data from the h5 files to dictionaries and then using 'flat_dict_to_hierarchical_dataframe' in the 'dataframe_utilities' when reading a shot. This seems to work totally different to the methods in the main of lyse that usually update the dataframe.

Currently this is no problem to me, but in future I think this bug should be getting fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant