silx-kit / pyFAI

Fast Azimuthal Integration in Python
Other
105 stars 95 forks source link

IO-less calibration #660

Open CJ-Wright opened 7 years ago

CJ-Wright commented 7 years ago

Currently Calibration requires a valid file path for Calibration.pointfile. Can this be done in memory? It would be nice to separate the actual data processing from the file handling.

vallsv commented 7 years ago

HI. I agree, but i hope pyFAI-calib2 will be soon ready to replace pyFAI-calib soon. Or do you use this class with your own script? Anyway fill free to send a patch if you like.

CJ-Wright commented 7 years ago

We use the class inside a larger library.

kif commented 7 years ago

I think this can be done without too much problems ... The peak-picker itself and the control-point underneath work properly without "pointfile" as demonstrated in this tutorial: https://github.com/silx-kit/pyFAI/blob/master/doc/source/usage/tutorial/Goniometer/Rotation-Pilatus100k/Multi120_Pilatus100k.ipynb

Please feel free to submit a patch.