-
Notifications
You must be signed in to change notification settings - Fork 3
Change domain names to standard scheme (additional) #231
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
Conversation
… and MaskedData -> CorrectedDetector[ScatteringRunType, Numerator]
|
I have a flaky test on my local machine: Full error is |
Is there randomness in the workflow? Or is this due to multi threading? |
|
My guess is multi-threading... The tests passes if I replace identical with allclose. |
I agree. Why do we have the same type for numerator and denominator? It seems odd to use a generic here because the two represent different things conceptually.
You could carry the |
This is the question I spent a lot of time on during the retreat... but for now I decided I don't want to touch it because I am bound to break something somewhere... |
src/ess/sans/types.py
Outdated
| class MaskedSolidAngle(sciline.Scope[ScatteringRunType, sc.DataArray], sc.DataArray): | ||
| """Same as :py:class:`SolidAngle`, but with pixel masks applied""" | ||
| # class MaskedSolidAngle(sciline.Scope[ScatteringRunType, sc.DataArray], sc.DataArray): | ||
| # """Same as :py:class:`SolidAngle`, but with pixel masks applied""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove?
In addition to #229 , we rename some more types (see commit messages for details).
I am not so sure about the
WavelengthScaledQ->NormalizedQrename as some scaling happens for theDenominatorbut there isn't really a normalization going on for theNumerator...Maybe we should just use a different name altogether?
I did feel that
WavelengthScaledQwas not a good name anyway.I was also unsure about the
BinnedQname. We go fromWavelengthDetectortoQDetector(after computing the Q coord but keeping detector dims). Then we bin in Q, so in principle theDetectorpart goes away, and we are left with justQas the dim. In other techniques, the data is calledCorrected<SOMETHING>at this point, so we still have the Corrected prefix, but we don't have it here.So I just came up with
BinnedQ.