pyFAI icon indicating copy to clipboard operation
pyFAI copied to clipboard

Ensure goniometer can be stored/restored with NexusDetectors

Open kif opened this issue 2 years ago • 1 comments

Found on BM02

kif avatar Aug 26 '21 15:08 kif

I suspect this is the same bug:

> gonioref.sload(json_file)#, gonioref
> 
> ===============================================================
> 
> ---------------------------------------------------------------------------RuntimeError
>                              Traceback (most recent call
> last)<ipython-input-40-dbbf7a4eb1b1> in <module>      1
> print(open(json_file).read())      2 ----> 3
> gonioref.sload(json_file)#, gonioref
> ~/miniconda3/envs/pyfai/lib/python3.9/site-packages/pyFAI/goniometer.py
> in sload(cls, filename, pos_function)    845                 funct =
> ExtendedTransformation(**tansfun)    846             else:--> 847
>            raise RuntimeError("content= %s, not in in
> (GeometryTranslation, GeometryTransformation, ExtendedTranformation)")
>    848         else:  # assume GeometryTransformation    849
>   funct = GeometryTransformation(**tansfun)
> RuntimeError: content= %s, not in in (GeometryTranslation,
> GeometryTransformation, ExtendedTranformation)
> 

kif avatar Oct 04 '21 06:10 kif