-
Notifications
You must be signed in to change notification settings - Fork 5
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
new add07 add compress instruments in sqw #752
base: master
Are you sure you want to change the base?
Conversation
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.
makes sense as working document.
Would accept it considering the comments
documentation/add/07-sqw_redesign.md
Outdated
1. The object exists in two distinct forms: | ||
- "SQW" which contains all experimental data and the detector pixel array, | ||
- "DND" which contains only processed neutron image data | ||
|
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.
I believe, it should be rewritten as
- "DND" which contains processed neutron image data
- "SQW" -- everything DND object contains plus all experimental data, the detector pixel array and all relevant data describing the experiment.
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.
Done - see commit 10.01.22
documentation/add/07-sqw_redesign.md
Outdated
- "SQW" which contains all experimental data and the detector pixel array, | ||
- "DND" which contains only processed neutron image data | ||
|
||
While conceptually these two forms remain distinct, over time the interdependence of their implementations has grown, and to support further development of the object it is desirable to refactor the objects to remove such interdependence. |
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 this makes sense. one form fully contains another and brings more. But these words may mean something too.
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.
Text rewritten to emphasize that the data differences are clearly as described - one form does contain the other - but the functional implementations required revision which has now been done.. See commit 10.01.22
The design document add/07-sqw-redesign provided details on how the new sqw object should be constructed, but did not describe the rationale for this, which is to compress the number of instruments etc down from one per run per cut (counting the original sqw object as cut-#0) to a list of unique objects for which each run has an index to the list, and where cuts have list copies which do not duplicate memory through the copy-on-write mechanism.
This extension to the document adds this rationale and provides sketches of workflows where the instruments can be inserted to prevent duplications of unique instruments. Samples etc will be handled in the same way