-
Notifications
You must be signed in to change notification settings - Fork 2
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
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
c17c64d
Support event-mode I(Q)
SimonHeybrock be91239
Add "drop" broadcast mode.
SimonHeybrock c0c105b
Add variances to event data loaded with ScippNexus
SimonHeybrock 54dfa06
Fix direct-beam iteration to work with data that has variances
SimonHeybrock 2f82e33
Add and update tests
SimonHeybrock 0b4880a
Update tests/loki/iofq_test.py
SimonHeybrock ca4eb37
Update src/esssans/__init__.py
SimonHeybrock 5439933
Merge branch 'main' into event-mode
SimonHeybrock cb97c6e
Refactor to handle wavelength bands during normalization step
SimonHeybrock 50122c3
Update notebook
SimonHeybrock 6268fbe
Inline helper functions
SimonHeybrock 2a728d7
Move function to related file
SimonHeybrock 146ac86
Merge pull request #68 from scipp/refactor-band-handling
SimonHeybrock File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
providers = ( | ||
*conversions.providers, | ||
|
@@ -41,6 +42,10 @@ | |
del importlib | ||
|
||
__all__ = [ | ||
SimonHeybrock marked this conversation as resolved.
Show resolved
Hide resolved
|
||
'BackgroundSubtractedIofQ', | ||
'IofQ', | ||
'SampleRun', | ||
'ReturnEvents', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Above, you import There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed! |
||
'beam_center_finder', | ||
'common', | ||
'conversions', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
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?
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.
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.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.
Should we sit down and discuss what would be the best way to do this, so we're all on the same page?
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.
Definitely!