AlpG2308 / xvg-parser-plotter

Created a parser for GROMACS .xvg files. The files are plotted using matplotlib
2 stars 1 forks source link

Using pandas and dumping to dict #1

Open dineshpinto opened 1 year ago

dineshpinto commented 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.

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

AlpG2308 commented 1 year ago

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.