-
Notifications
You must be signed in to change notification settings - Fork 58
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
Flux changes for NXmx #1035
Flux changes for NXmx #1035
Conversation
- Add flux_integrated and total_flux_integrated, Useful where temporal profiles of flux are not known. - Change total_flux to not be required - Add NXbeam attribute flux, to point to which flux field is used - Add optional NXmonitor for additional incident beam data Closes #986
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.
Good fix -- Herbert
Referenced units:
This is what currently exists:
This is the proposed changes in this MR (without the
So the word "integrated" stands for time integrated and the word "total" stands for area integrated. The reason we cannot come up with sensible names like
is because Sorry @phyy-nx for my initial pessimistic view, the two units that were wrong scared the hell out of me. The names are very unfortunate but we already have I have no strong opinion on the addition of the optional |
No worries, thanks for the comments. I'll review your comments more carefully as soon as I get a chance. |
All existing MX ontologies have some unfortunate names, but it can be a
disaster to make changes to existing tags used in large numbers of images,
in this case, millions. The best
you can do it to start a slow process of deprecation and recommendation of
new names.
Most of the tme it is not worth the effort.
It could be worse. We could be back to when I was young and all of physics
moved
from default left-handed systems for E&M to right handed. I still have
trouble with that,
especially since I am a right-trained lefty.
…On Tue, Mar 15, 2022 at 12:17 PM woutdenolf ***@***.***> wrote:
Referenced units:
- NX_FLUX: 1/s/cm^2
- NX_PER_AREA: 1/cm^2
- NX_FREQUENCY: 1/s
- NX_DIMENSIONLESS
This is what currently exists:
NXbeam
flux[i]: (optional) NX_FLOAT {units=NX_FLUX}
NXmx
ENTRY: (required) NXentry
BEAM: (required) NXbeam
flux: (optional) NX_FLOAT {units=NX_FLUX}
total_flux: (required) NX_FLOAT {units=NX_FREQUENCY}
This is the new proposal (without the NXmonitor part, only the *flux*
related things):
NXbeam
flux[i]: (optional) NX_FLOAT {units=NX_FLUX}
NXmx
ENTRY: (required) NXentry
BEAM: (required) NXbeam
@Flux: (optional) NX_CHAR
total_flux: (optional) NX_FLOAT {units=NX_FREQUENCY}
flux: (optional) NX_FLOAT {units=NX_FLUX}
flux_integrated: (optional) NX_FLOAT {units=NX_PER_AREA}
total_flux_integrated: (optional) NX_FLOAT {units=NX_DIMENSIONLESS}
So the word "integrated" stands for *time integrated* and the word
"total" stands for *area integrated*.
The reason we cannot come up with sensible names like
- flux_integrated -> flux_time_integrated
- total_flux -> flux_area_integrated
- total_flux_integrated -> flux_time_and_area_integrated
is because NXmx already has total_flux.
Sorry @phyy-nx <https://github.com/phyy-nx> for my initial pessimistic
view, the two units that were wrong scared the hell out of me. The names
are very unfortunate but we already have total_flux in NXmx so I don't
see another way either. I'd say we should not propagate these unfortunate
names to NXbeam in the future.
I have no strong opinion on the addition of the optional NXmonitor.
—
Reply to this email directly, view it on GitHub
<#1035 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABB6EAKFIQRHI7ZFJ3YFTNDVACZXXANCNFSM5QXGUGGA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
@phyy-nx There is nothing to review, I didn't propose anything different. You can go ahead with what you have after fixing the units of
For sure. |
@phyy-nx Maybe you could add a comment about
You can understand that from the units but maybe it is good to mention it explicitly since the words "total" and "integrated" are not self explanatory. |
@phyy-nx Since this is labeled "NIAC should review", then is there anything to do at the Code Camp this month? If not, then remove this PR from the Code Camp project. |
I proposed a fix for all my comments in Merge #1082. You can merge it in this branch if you approve. |
Ok, I think that's all the feedback from the spring NIAC. I think we can remove the code camp label and vote on it this fall. |
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.
LGTM
GitHub reports a merge conflict with NXmx.nxdl.xml. Also, since we will not merge this until the NIAC looks at it, can we convert this PR to draft state to prevent someone merging? |
Conflicts are fixed |
Conversation from code camp summer 2022. Since this needs a NIAC vote anyway, let's make as a goal to use the logic proposed in #1002 to enforce a choice between |
From Fall 2022 NIAC, don't need to wait on #1002. Instead, vote on this, merge it, and add a new issue to require one of |
There is a conflict involving the NXmonitor group. |
Conflicts fixed, ready for NIAC vote |
thanks @prjemian
CI testing failed:
And that means my previous change was not correct. My apology. Please switch back to:
|
…te that the user can provide a link to an NXmonitor
This reverts commit 85b5288.
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.
LGTM
The proposal is to accept the changes to NXmx represented by pull request #1035 |
Thanks folks |
Closes #986
Closes nexusformat/NIAC#96