GSAS-II icon indicating copy to clipboard operation
GSAS-II copied to clipboard

Importer calling FabIO

Open briantoby opened this issue 1 year ago • 5 comments

FabIO reads lots of image types that GSAS-II does not. An importer could call FabIO. This requires matching FabIO metadata reporting to the GSAS-II input needs.

briantoby avatar Apr 05 '24 16:04 briantoby

@briantoby: note 3/7/24 e-mail from Siwei Chen

briantoby avatar Apr 05 '24 16:04 briantoby

If you need a hand ... I could probably help.

kif avatar Jul 11 '24 11:07 kif

i would love to get some help on this. My thought is that I open a branch for this and outline a new importer. Once I do that, it will be more clear what is needed (which will be to map output from FabIO into places where GSAS-II needs the input.)

I'll try to get to this soon, but it might take a week...

briantoby avatar Jul 11 '24 15:07 briantoby

@kif A week was only a bit optimistic, but I wanted to change the way that Importers report errors for needed packages and provide a mechanism for installing them from the GUI (since I don't think most users can manage conda or pip directly.) Also, I have updated the doc's on how importers are expected to work (https://gsas-ii.readthedocs.io/en/latest/imports.html#writing-an-importer-routine).

In any case, I have created a branch (FabIO) with a shell for a new importer, https://github.com/AdvancedPhotonSource/GSAS-II/blob/FabIO/GSASII/imports/G2img_FabIO.py. If you would be willing to take a stab at filling out that code, it would be very much appreciated. You might want to fork it and create a PR so we can both work on it.

briantoby avatar Jul 29 '24 02:07 briantoby