European-XFEL / EXtra-geom

Use EuXFEL detector geometry to assemble images
https://extra-geom.rtfd.io
BSD 3-Clause "New" or "Revised" License
5 stars 4 forks source link

Scientific notation does not work in geom files #250

Closed kartikayyer closed 3 months ago

kartikayyer commented 1 year ago

Small numbers are written by EXtra-geom as 6.6e-05 or something like that. This uses the letter (e) which is not recognized by the reader (only x, y and z are allowed for vectors.

This results in the ridiculous situation where EXtra-geom cannot read the geom files it writes by itself!!

tmichela commented 1 year ago

Hi Kartik,

This was already fixed in #163

Either your environment has an old version of extra-geom, then please upgrade it with the latest release, or the geometry file you are trying to read was generated a long time ago when the bug was still there. As we use the cfelpyutils library for reading geom files we cannot change the behavior, unfortunatelly you'll have to edit the file manually in this case.