Closed decaluwe closed 1 year ago
After some playing around, the error is with theta offset, which makes sense. Closing this, now.
The default file for Platypus is Q/R/dR/dQ, but if needed we could output an omega/domega/lambda/dlambda/R/dR file.
Thanks, @andyfaff -- the output format is good. The instrument just doesn't like having a theta_offset
parameter (to adjust for potential errors in alignment).
This is not a significant issue, for me, at this point, so I'm fine to move ahead.
An earlier refactor to improve handling of theta_offset in Probe and PolarizedNeutronProbe introduced a bug in PolarizedQProbe, which was fixed in 0.8.16, but it looks like it also introduced the calc_Q bug in the QProbe class as well. We can fix that soon.
If you want to fit theta_offset though, I suggest using the Probe (NeutronProbe?) class instead of QProbe, as those classes calculate Q based on theta and lambda specifically to support theta_offset. The QProbe class does not keep track of theta or theta_offset.
Thanks, Brian. So I am loading the instrument using
from refl1d import anstodata as ansto
instrument = ansto.Platypus()
probe_ocp = instrument.load(data_1M_OCP)
I'm not sure what in this chain specifies a QProbe
vs. a Probe
/NeutronProbe
...
Yes, that loader creates a QProbe. We can modify it to use NeutronProbe if the inputs can include the wavelength and theta, as Andrew suggested above.
Hi, I am trying to run a fit on some data taken on Platypus, at ANSTO. When I try to run, I get the following error:
Input file and sample data attached. I run from the command line using:
refl1d just re-installed today via pip
Thanks in advance for any advice/help/feedback.
Steven