Skip to content

Commit 7a14208

Browse files
authored
change how-to docs for validation (#698)
* change how-to docs for validation * change learn docs for validation * further cleanup * build docs from feature branch * spellcheck * review comments * remove installation manual for cnxvalidate * revert changes to docs workflow * spelling
1 parent 371aa06 commit 7a14208

16 files changed

+2205
-962
lines changed

.cspell/custom-dictionary.txt

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,26 @@ NXDL
1111
# Words related to experimental techniques
1212

1313
# Software
14+
BASECLASS
1415
caplog
1516
cnxvalidate
1617
dataconverter
1718
DECTRIS
1819
electronanalyzer
1920
ELECTRONANALYZER
2021
ellipsometry
22+
GROUPNAME
2123
infty
2224
libiconv
2325
loadgroup
2426
mainfile
27+
Metainfo
2528
MSYS
2629
nexpy
30+
nexusformat
2731
nxdls
2832
PATHCONV
33+
pathtovalidate
2934
posint
3035
punx
3136
pynxtools
@@ -34,6 +39,7 @@ xdist
3439
Zenodo
3540

3641
# examples
42+
alphabetagamma
3743
appdefdir
3844
CSET
3945
ellips
@@ -61,30 +67,53 @@ xfbaa
6167
arpes
6268
ARPES
6369
Bluesky
70+
emittance
71+
flatfield
72+
fluence
6473
mbar
74+
monochromator
75+
monoclinic
6576
MPES
6677
Raman
78+
setpoint
79+
xraylens
6780

6881
# Names
82+
Brockhauser
83+
Brückner
84+
Dobener
85+
Draxl
86+
Fekete
6987
Forschungsgemeinschaft
88+
Ginzburg
89+
Haraszti
7090
José
7191
Kühbach
7292
Lukas
7393
lukaspie
94+
Maier
7495
Markus
96+
Márquez
7597
mkuehbach
7698
Mozumder
7799
NFDI
78100
Pielsticker
101+
Rettig
102+
Scheidgen
79103
Shabih
80104
Sherjeel
81105
sherjeelshabih
106+
tommaso
82107

83108
# other languages
84109

85-
# en-UK which requires to many changes
110+
# en-UK
111+
analyser
112+
oxidising
86113

87114
# misc
115+
appdef
88116
appdefs
89117
hypothes
90-
speciality
118+
plottable
119+
underload

.github/workflows/build_docs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ jobs:
3030
- name: Check spelling
3131
uses: streetsidesoftware/cspell-action@v7
3232
with:
33-
files: "docs/**/*.md README.md"
33+
files: |
34+
docs/**/*.md
35+
README.md
3436
strict: true
3537
incremental_files_only: false
3638

docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ No. With the available [plugins](./reference/plugins.md) or community-developed
5959

6060
NeXus is supported by the research data management platform NOMAD (as a [NOMAD plugin](https://nomad-lab.eu/prod/v1/docs/howto/plugins/plugins.html)). Experimental data files that are compatible with a NeXus application definition can easily be uploaded to NOMAD and translated into the [NOMAD Metainfo](https://nomad-lab.eu/prod/v1/gui/analyze/metainfo/pynxtools) data model using `pynxtools`. Therefore, the data file can be recognized by NOMAD's search system. If you want to learn more about uploading NeXus data to NOMAD, please refer to the [NeXus to NOMAD tutorial](./tutorial/nexus-to-nomad.md) of this documentation.
6161

62-
To use the `pynxtools` Python package with NOMAD, simply install it in the same Python environment as the `nomad-lab` package. NOMAD will recognize `pynxtools` as a plugin automatically and offer automatic parsing of `.nxs` files. In addition, NOMAD will automatically transform the NeXus definitions shipped with `pynxtools` into its own datamodel called `Metainfo`. By default, `pynxtools` is already included in the NOMAD [production]https://nomad-lab.eu/prod/v1/gui/ and [staging](https://nomad-lab.eu/prod/v1/staging/gui/) deployments..
62+
To use the `pynxtools` Python package with NOMAD, simply install it in the same Python environment as the `nomad-lab` package. NOMAD will recognize `pynxtools` as a plugin automatically and offer automatic parsing of `.nxs` files. In addition, NOMAD will automatically transform the NeXus definitions shipped with `pynxtools` into its own data model called `Metainfo`. By default, `pynxtools` is already included in the NOMAD [production]https://nomad-lab.eu/prod/v1/gui/ and [staging](https://nomad-lab.eu/prod/v1/staging/gui/) deployments..
6363

6464
!!! info "A note on FAIR data"
6565

docs/how-tos/pynxtools/create-nexus-files-by-python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,5 +212,5 @@ Note that you can also add instances for recommended or optional concepts to the
212212

213213
## What's next?
214214

215-
- Once you have a finished NeXus file, you may continue [by validating the NeXus file](validate-nexus-file.md).
215+
- Once you have a finished NeXus file, you may continue [by validating the NeXus file](../pynxtools/validate-nexus-files.md).
216216
- If you find yourself in the situation that you need to run such Python code routinely to convert your data, we strongly recommend creating your own reader or plugin in the `pynxtools` ecosystem. You can find a how-to guide to get you started [here](build-a-plugin.md).

docs/how-tos/pynxtools/installation_notes_nxvalidate.md

Lines changed: 0 additions & 82 deletions
This file was deleted.

docs/how-tos/pynxtools/testing-validation-tools.md

Lines changed: 0 additions & 175 deletions
This file was deleted.

docs/how-tos/pynxtools/using-pynxtools-test-framework.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Afterwards, the `ReaderTest.convert_to_nexus` method uses the NeXus annotator to
7878
This test can also be configured:
7979

8080
- You can pass a keyword argument `ignore_lines` to `check_reproducibility_of_nexus`. `ignore_lines` is expected to be a list of lines for which the comparison shall be skipped. Specifically, any line that starts with any of the strings in `ignore_lines` is ignored.
81-
- In adddition, you can disable the comparison for a given line for a NeXus concept in the `read_nexus` output using the `ignore_sections` keyword. As an example, a typical section for a NeXus field in the output looks like this:
81+
- In addition, you can disable the comparison for a given line for a NeXus concept in the `read_nexus` output using the `ignore_sections` keyword. As an example, a typical section for a NeXus field in the output looks like this:
8282

8383
```
8484
DEBUG:
@@ -104,7 +104,7 @@ This test can also be configured:
104104
105105
## How to write an integration test for a NOMAD example in a reader plugin
106106
107-
It is also possible to ship NOMAD Example Uploads directly with the reader plugin. As an example, `pynxtools-mpes` comes with its own [NOMAD examplehere](https://github.com/FAIRmat-NFDI/pynxtools-mpes/tree/bring-in-examples/src/pynxtools_mpes/nomad) using the [`ExampleUploadEntryPoint`](https://nomad-lab.eu/prod/v1/staging/docs/howto/plugins/example_uploads.html) of NOMAD.
107+
It is also possible to ship NOMAD Example Uploads directly with the reader plugin. As an example, `pynxtools-mpes` comes with its own [NOMAD example](https://github.com/FAIRmat-NFDI/pynxtools-mpes/tree/bring-in-examples/src/pynxtools_mpes/nomad) using the [`ExampleUploadEntryPoint`](https://nomad-lab.eu/prod/v1/staging/docs/howto/plugins/example_uploads.html) of NOMAD.
108108
109109
The `testing` sub-package of `pynxtools` provides two functionalities for testing the `ExampleUploadEntryPoint` defined in a `pynxtools` plugin:
110110

0 commit comments

Comments
 (0)