New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
signs of resolution matrix elements? #54
Comments
After looking into it, the scattering is calculated for a left-handed coordinate frame (y is defined being clockwise from x). There is an implementation for changing to a right-handed one, but I haven't pushed it due to incomplete testing. In principle, the |
Ok, so I was correct in saying that the default is to use a left-handed coordinate frame, but the way to change it is not through the
The above code should output
I will update the documentation to reflect the correct usage. |
Resolves #54 The Instrument class attributes dir1, dir2 and mondir are depreciated in favor of mono.dir, sample.dir, and ana.dir. These attributes control the handedness of the coordinate frame. Documentation in _Monochromator and Instrument class is updated to reflect correct usage.
Resolves #54 The Instrument class attributes dir1, dir2 and mondir are depreciated in favor of mono.dir, sample.dir, and ana.dir. These attributes control the handedness of the coordinate frame. Documentation in _Monochromator and Instrument class is updated to reflect correct usage.
Resolves #54 The Instrument class attributes dir1, dir2 and mondir are depreciated in favor of mono.dir, sample.dir, and ana.dir. These attributes control the handedness of the coordinate frame. Documentation in _Monochromator and Instrument class is updated to reflect correct usage.
Resolves #54 The Instrument class attributes dir1, dir2 and mondir are depreciated in favor of mono.dir, sample.dir, and ana.dir. These attributes control the handedness of the coordinate frame. Documentation in _Monochromator and Instrument class is updated to reflect correct usage.
Resolves #54 The Instrument class attributes dir1, dir2 and mondir are depreciated in favor of mono.dir, sample.dir, and ana.dir. These attributes control the handedness of the coordinate frame. Documentation in _Monochromator and Instrument class is updated to reflect correct usage.
I'm trying to generate the resolution matrix using both neutronpy and "reselps", but I'm getting some of the matrix elements to be of the opposite sign.
neutronpy code:
neutronpy result:
With similar parameters,
the reselps code has this result:
(the z and energy indices are swapped). It looks like the y-row and y-column are multiplied by -1. Can you think of a reason for this discrepancy? Is the "y" direction defined as clockwise relative to Q rather than counterclockwise as in the reselps code?
The text was updated successfully, but these errors were encountered: