-
Notifications
You must be signed in to change notification settings - Fork 56
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
(issue 492) NXcanSAS v1.0 release #516
Conversation
remove other graphics, they are now out of date
…nto NXcansas-492
Hi. Just a few small items based on the HTML documentation: In the section on Q uncertainties: In the section on resolution: On the intensity vector I: I/@uncertainties�: On dQw/dQl: On Qmean: General remark: are the directions x, y specified and/or in accordance with the NeXus coordinate system definitions? Other than that, I think it looks very good! |
Docs for @uncertainties on Q : agree with @toqduj on rewording. I would prefer people to use the natural definition for each distribution e.g. Full Width would be the natural one for "Square" rather than having to convert to/from standard deviation. However, that gets thorny quickly definition wise. Do we allow similar syntax for @uncertainties - since we might have components and their sources. Tend to think this should always be standard deviation if it is to be interpreted as an "error bar" in the normal usage. Docs for @resolution: Says "This may be used to describe the slit-length at each datum" after the Qdev example. This is a bit confusing as Qdev is not the slit-length. I suggest removing that sentence. Otherwise looks OK to me. |
@toqduj -> typical units in SANS are 1/Å for Q and 1/cm for I(q). At least 1/m would annoy everyone equally ;) @toqduj -> Q & Qmean -> Yes, always in fact. Shouldn't give Qmean without Q (derived from NIST usage where Qmean is centre for resolution distribution which might be different from nominal Q value of bin). |
Regarding @ajj in here As for Q in units of 1/m, there is something nice about not having to worry about the meaning of your reciprocal length variable to figure out which units it should be in. I now use meters and reciprocal meters throughout the McSAS code, which avoids having to pepper the code with conversion factors (actually, we have a nice "units" library, which converts all input to SI units for internal use). These days, an exponent of 10^9 (or its square) is no problem in storing or programming anymore, at least in modern programming languages. As an added bonus, all your intensity-vs-q plots are now in 1/m vs 1/m units, which nicely cancels out :). |
toqdui said: 'I now use meters and reciprocal meters throughout the McSAS code, which avoids having to pepper the code with conversion factors (actually, we have a nice "units" library, which converts all input to SI units for internal use).' I think we need to remember that what we are putting the finishing touches to here is a file format, and not an attempt to dictate how the global SAS community ought/should/could represent their data. To mandate that NXcanSAS only accept data that is 1/m vs 1/m will mean that either every program that writes/reads data will need modifying, or that no one - except maybe toqdui :-) - ever uses NXcanSAS, in which case we are wasting our time. Sorry if this sounds harsh, but we have to be pragmatic. A file format is a data wrapper, it should accept as wide a variety of data (of the specified type) as possible provided that data can be described accordingly. |
To prjemian: You’ve previously also circulated a structure file. Can you post the latest current example, please? Thanks. |
Here is the structure of the current revision:
|
@smk78 The units are not fixed in any case (that's what the @Units attribute is for). However, there are recommendations for units in the document. If we don't want to recommend any particular form, that's fine too. Note, however, that any flexibility in the format specification, requires additional programming effort on the ingestion side to deal with. Therefore, specifying something is not so bad either, to avoid having to write for an infinity number of possible cases. |
read this section in the NeXus manual regarding units. |
@smk78 there was definitely no intention on my part to impose unit usage. It is true that our examples use the customary units from the neutron world (1/cm and 1/A) rather than those from the x-ray world (1/mm or 1/m and 1/nm), but I think that it is clear in the docs that the writers and readers of the data need to ensure that they are properly handling the units as per NeXus standards. I was being a bit tongue in cheek in my comments to @toqduj about the 1/m for Q - that is one that is not worth fighting. The nice thing about 1/cm or 1/A give values that are range nicely from around 1 and 3 orders up for I and from 1 and 3 orders down for Q, which makes them more "human scale". There is also the calculation precision question and pre-cancelling your exponents. We need to ensure that the barrier to entry is sufficiently low - if people have to do unit conversions from their existing data workflows they will just ignore this. I'm happy as is aside from fixing the resolution slit-length part of the docs (would have ticked box, but that doesn't work!). @prjemian - fix the slit-length comment and then count me as a tick! |
Likewise, I'm happy with the unit description in the NeXus docs as linked to by @prjemian. Count me ticked off as well, with the minor changes touched on in my first post. |
revised PDF and structure files: |
Re my comments 7 days ago: why does the data block for SAStransmission_spectrum have @timestamp but the data block for SASdata does not? |
Wouldn't @Units for Tdev be NX_DIMENSIONLESS? |
In NXcanSAS.pdf I notice we still have the direction to use 1/SQRT(I) for Poisson statistics. @adrianrennie cautioned against this above. |
Actually @prjemian , before I get carried away here, is the pdf at https://github.com/nexusformat/definitions/files/645016/NXcanSAS.pdf (your link 9 hours ago) really the revised version? Only I notice it is timestamped 10/19/2016 04:19 PM !!! |
##516 (comment) Should Tdev minOccurs=0? Is this field optional?
re #516 (comment): confirmed that "Poisson" text is removed from the current version. PDF file is stale. |
added @timestamp to SASdata per comment #516 (comment)
to ensure that HTML is completely rebuilt, use this command from root-level directory:
|
revised PDF and structure files: (PDF is timestamped: 12/12/2016 10:46 AM) |
Have lost track of where we are with this. Is it released? or still waiting for check marks from me, Steve and Adrian? If the latter I would check but as mentioned somewhere else I apparently have no such privilege ... The only thing I see is that resolution should be plural as there are many sources to the resolution not just one ..... JOKE .. no really ... that was a joke :-) Seriously feel free to check me off -- As Steve states "we are putting the finishing touches to here is a file format, and not an attempt to dictate how the global SAS community ought/should/could represent their data" -- I think the current state of the spec, as I've said before, represents a giant step forward and now is sufficiently agnostic to issues which may still be controversial to allow future versions to improve on it if and when consensus is reached, and further does not overly prescribe requirements that could stifle innovation. Are there more issues that need addressing before releasing this version? |
@resolution changed to @resolutions, per #516 (comment)
With a4a0477, butlerpd will be "ticked off". @smk78 & @adrianrennie, are you both satisfied? I'd like to merge this over the weekend. |
revised PDF and structure files: |
A tick can be placed by my name. |
Go ahead, Pete. I won't be able to review any more before Wed.
Steve
Sent from my Windows 8.1 Phone
…________________________________
From: Pete R Jemian<mailto:[email protected]>
Sent: �16/�12/�2016 14:36
To: nexusformat/definitions<mailto:[email protected]>
Cc: King, Stephen (STFC,RAL,ISIS)<mailto:[email protected]>; Mention<mailto:[email protected]>
Subject: Re: [nexusformat/definitions] (issue 492) NXcanSAS v1.0 release (#516)
With a4a0477<a4a0477>, butlerpd will be "ticked off".
@smk78<https://github.com/smk78> & @adrianrennie<https://github.com/adrianrennie>, are you both satisfied? I'd like to merge this over the weekend.
�
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#516 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AKbpN-epT6wCxOnkY5TrwfY6vPvzVTdhks5rIqG4gaJpZM4LBAGQ>.
|
Right ... teach me to make a joke --- won't happen again. |
Ok, we're all in. Once I figure out the tagging procedure that NeXus has agreed upon, I'll merge. Thanks, all, for the hard work. And the giggles, too. |
Reviewers: check your box after you have reviewed the NXcanSAS NXDL code
This is the final review before the v1.0 release.
Technical corrections only, please.
Keep all comments on this issue page (not on the canSAS-DFWG Google group discussion).
Andrew Jackson ((issue 492) NXcanSAS v1.0 release #516 (comment))
Paul Butler ((issue 492) NXcanSAS v1.0 release #516 (comment))
Steve King ((issue 492) NXcanSAS v1.0 release #516 (comment))
Brian Pauw ((issue 492) NXcanSAS v1.0 release #516 (comment))
Adrian Rennie ((issue 492) NXcanSAS v1.0 release #516 (comment))
Copy of HTML documentation:
NXcanSAS.pdf