Skip to content

re-adding dictionaries #90

Open
Open
@lenz-f

Description

@lenz-f

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.

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