-
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
WIP: add transformation field to NXdata #1033
base: main
Are you sure you want to change the base?
WIP: add transformation field to NXdata #1033
Conversation
ec28489
to
e2afee4
Compare
Right. Before sphinx is run, the nxdl.xml files are parsed, creating .rst
files for the documentation.
…On Sat, Mar 26, 2022, 11:06 AM woutdenolf ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In .gitignore
<#1033 (comment)>
:
> @@ -10,6 +11,11 @@ manual/source/*.table
manual/source/classes/*/NX*.rst
manual/source/classes/*/*.nxdl.xml
manual/source/classes/contributed_definitions/canSAS
+manual/source/classes/applications/canSAS
I'm actually surprised files are added to the source directory. That's not
normal sphinx behaviour. I guess this is done by some custom code
somewhere?
—
Reply to this email directly, view it on GitHub
<#1033 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARMUMDQDMWA4FOMXMIZNN3VB4YYHANCNFSM5QTF25SA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I like the way this looks. Makes it so easy to add documentation which becomes part of the manual_ from a Jupyter notebook. Noticing that a single notebook creates 4 subsections. Was expecting a single subsection per notebook, with sub-subsections. Was that intentional? Is it designed (by the notebook author)? Looks like it. Each of the sections there use |
@woutdenolf Should we consider this PR at the 2022-06 Code Camp? |
I made this to discuss nexusformat/NIAC#102 Maybe after some cleanup this can be actually part of the documentation. Not for 2022-06 Code Camp I would say. |
33b0b80
to
c53f839
Compare
efb0629
to
39c72a1
Compare
ed18533
to
9051d04
Compare
Looks good to me. This will also be useful for 3D reciprocal space plots. |
9051d04
to
81fd9a5
Compare
04c5875
to
25ae5cb
Compare
25ae5cb
to
3c5ea74
Compare
3c5ea74
to
8b4b607
Compare
Closes nexusformat/NIAC#102
Proposal
Add the attribute
passive_transformation
and fieldTRANSFORMATION
toNXdata
.To be decided:
-> currently I chose passive because transforming an image is often done by defining a grid in the plotting frame, transforming the grid coordinates to the data frame and interpolate the image.
[x,y,1]^T
coordinates (natural for 2D) or[y,x,1]^T
(natural for n-D)?-> currently I chose
[y,x,1]^T
as it keeps the coordinate order defined byAXISNAME_indices
.Example
An example for a 3D signal
Preview of PR changes
NXdata rendering:
https://hdf5.gitlab-pages.esrf.fr/nexus/nxdata_transformation/classes/base_classes/NXdata.html#nxdata-transformation-field
Additional documentation and code examples for reference frames:
https://hdf5.gitlab-pages.esrf.fr/nexus/nxdata_transformation/notebooks/index.html
Extra dependencies
nbsphinx
andipython
are needed to include jupyter notebooks in the documentation.These can be pip installed but
nbsphinx
also needspandoc
, which is a system package.Edit: to be decided whether this is acceptable. Perhaps add
pandoc
system installation tomake install
for linux, windows and mac?