Skip to content
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

Support event-mode I(Q) #65

Merged
merged 13 commits into from
Feb 6, 2024
Merged

Support event-mode I(Q) #65

merged 13 commits into from
Feb 6, 2024

Conversation

SimonHeybrock
Copy link
Member

This uses an upper-bound error estimate. Fixes #61.

Also fixes #64.

@@ -21,6 +21,7 @@
)
from .common import transmission_from_background_run, transmission_from_sample_run
from .direct_beam import direct_beam
from .types import BackgroundSubtractedIofQ, IofQ, ReturnEvents, SampleRun
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why we are now importing those on the top level? Was it to get away from the from types import *?
If so, should this be reflected in the notebooks?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. types is meaningless for the user. We should name (and categorize things) in a meaningful way. Yes, there are a lot of things that need updating, I wanted to do that separately, in particular given that there is also other ongoing work that may conflict.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we sit down and discuss what would be the best way to do this, so we're all on the same page?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely!

@@ -41,6 +42,7 @@
del importlib

__all__ = [
'ReturnEvents',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Above, you import BackgroundSubtractedIofQ, IofQ, ReturnEvents, SampleRun
Should all of them be listed here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

variances by the number of events in each bin. An explicit broadcast is performed
to bypass Scipp's safety check on broadcasting variances.

Details will be published in an upcoming publication by Simon Heybrock et al.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would be careful with making such promises about publishing something. This may never happen?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then we should not use it.

Anyway, I have a very early draft, but it needs more work.

tests/loki/iofq_test.py Outdated Show resolved Hide resolved
Co-authored-by: Neil Vaytet <39047984+nvaytet@users.noreply.github.com>
Copy link
Member

@nvaytet nvaytet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me but CI is still failing (probably because of memory usage?)

@nvaytet
Copy link
Member

nvaytet commented Feb 6, 2024

Looks good to me but CI is still failing (probably because of memory usage?)

Does #69 help with fixing the CI I wonder?

Refactor to handle wavelength bands during normalization step
@SimonHeybrock
Copy link
Member Author

I merged #68, which already fixed the problem, I think this will pass now.

@SimonHeybrock SimonHeybrock merged commit ac6381c into main Feb 6, 2024
3 checks passed
@SimonHeybrock SimonHeybrock deleted the event-mode branch February 6, 2024 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Loki loader fails to setup variances for events? Return data in event mode
2 participants