APS-4ID-POLAR / polartools

Python package to read and process data from the APS Polar beamline.
https://polartools.readthedocs.io/en/latest/
Other
2 stars 2 forks source link

Make everything in absorption numpy.array() #53

Closed gfabbris closed 2 years ago

gfabbris commented 2 years ago

The load_data.load_table returns a pandas.Dataframe, but numpy.array is a bit more intuitive the an inexperienced users. The loading functions in absorption had a lot on inconsistencies between these two. Now everything is switched to numpy.array.

strempfer commented 2 years ago

That's a pity. I actually just started to use the groupby functionality of pandas.Dataframe to get the data sorted for the grid scans with polarization switching. This works quite well.

gfabbris commented 2 years ago

Note that this is just for the functions in absorption, not for load_table.

strempfer commented 2 years ago

Oh, I see. And this is very interesting to see how you do this, since this is also needed for diffraction.