electronsandstuff / easygdf

EasyGDF is a python interface to GDF files used in the particle tracking code GPT
BSD 3-Clause "New" or "Revised" License
5 stars 0 forks source link

Pandas Interface and Naming Conventions #8

Open electronsandstuff opened 1 year ago

electronsandstuff commented 1 year ago

A lot of the data stored in GDF files (for instance, the screens or initial particle distributions) is row-like. I think pandas would be useful here. I don't want to add it as a required dependency, however, so I am thinking of adding some functions to help with pandas import/export, but only have them show up if the user has installed pandas already.

electronsandstuff commented 1 year ago

While I am changing the library, it would also be cool to bring my names more in line with python and call them dump/load. I can also shorten the longer names.

I am thinking that the pandas loader could be implemented as a keyword arg.