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

new add07 add compress instruments in sqw #752

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cmarooney-stfc
Copy link
Collaborator

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

@cmarooney-stfc cmarooney-stfc added the documentation This ticket relates to writing/updating documentation label Nov 9, 2021
Copy link
Member

@abuts abuts left a 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

Comment on lines 20 to 23
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

Copy link
Member

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.

Copy link
Collaborator Author

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

- "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.
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 this makes sense. one form fully contains another and brings more. But these words may mean something too.

Copy link
Collaborator Author

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

@cmarooney-stfc cmarooney-stfc requested a review from abuts January 10, 2022 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This ticket relates to writing/updating documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants