Open dineshpinto opened 1 year ago
In the xvg_parser function you would probably be better off putting the data into a pandas dataframe and dumping the params into a dict.
xvg_parser
I wrote some similar functions for nanonis data file
data - https://github.com/dineshpinto/qudi-hira-analysis/blob/c6bed2a4a7286e9a4406f2d1c2f84cd89fa544d4/src/io_handler.py#L137
params - https://github.com/dineshpinto/qudi-hira-analysis/blob/c6bed2a4a7286e9a4406f2d1c2f84cd89fa544d4/src/io_handler.py#L156
Thanks for the remarks. I still wanted to change that part and dump my data and labels in a dataclass. Making it later on more accessible.
In the
xvg_parser
function you would probably be better off putting the data into a pandas dataframe and dumping the params into a dict.I wrote some similar functions for nanonis data file
data - https://github.com/dineshpinto/qudi-hira-analysis/blob/c6bed2a4a7286e9a4406f2d1c2f84cd89fa544d4/src/io_handler.py#L137
params - https://github.com/dineshpinto/qudi-hira-analysis/blob/c6bed2a4a7286e9a4406f2d1c2f84cd89fa544d4/src/io_handler.py#L156