Skip to content

Commit 51398cd

Browse files
committed
spellcheck
1 parent 207e8b5 commit 51398cd

File tree

8 files changed

+46
-16
lines changed

8 files changed

+46
-16
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
@@ -31,7 +31,9 @@ jobs:
3131
- name: Check spelling
3232
uses: streetsidesoftware/cspell-action@v7
3333
with:
34-
files: "docs/**/*.md README.md"
34+
files: |
35+
docs/**/*.md
36+
README.md
3537
strict: true
3638
incremental_files_only: false
3739

cspell.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@
2020
"words": [],
2121
"ignoreWords": [],
2222
"ignoreRegExpList": ["\\bNX\\w*\\b", "https?://[\\S]+"],
23-
"import": [],
2423
"language": "en-US"
2524
}

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/validate-nexus-files-other-tools.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ In case you are interested in testing these tools, we encourage you to follow th
2929

3030
## `cnxvalidate`
3131

32-
`cnxvalidate` is the validation tool that the NeXus International Advisory Committee (NIAC) has been devepoling and recommending to external users.
32+
`cnxvalidate` is the validation tool that the NeXus International Advisory Committee (NIAC) has been developing and recommending to external users.
3333

3434
- [Github Repository](<https://github.com/nexusformat/cnxvalidate>)
3535

@@ -147,7 +147,7 @@ Now you can use `cnxvalidate` with the executable called `nxvalidate` to validat
147147
nxvalidate -l DEFINITIONS FILE
148148
```
149149

150-
You can now envoke the validation on the test file:
150+
You can now invoke the validation on the test file:
151151

152152
=== "Source"
153153
```console
@@ -514,7 +514,7 @@ After installation, you can evoke the help call from the command line:
514514
```
515515

516516

517-
You can also envoke the help call for the validation API:
517+
You can also invoke the help call for the validation API:
518518

519519
=== "Source"
520520
```console

docs/how-tos/pynxtools/validate-nexus-files.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Note that you will need to have `pynxtools` installed in a Python environment. L
3636

3737
## **`validate_nexus`**
3838

39-
After installation, you can envoke the help call of the `validate_nexus` tool from the command line:
39+
After installation, you can invoke the help call of the `validate_nexus` tool from the command line:
4040

4141
```bash exec="on" source="material-block" result="ini"
4242
validate_nexus --help
@@ -67,7 +67,7 @@ Note that here we are passing the `--ignore-undocumented` flag to the validation
6767

6868
While `validate_nexus` is used as a tool for _validating_ a NeXus file, `read_nexus` is an _annotator_ tools. It outputs a debug log for a given NeXus file by annotating the data and metadata entries with the definitions from the respective NeXus base classes and application definitions to which the file refers to. This can be helpful to extract documentation and understand the concept defined in the NeXus application definition.
6969

70-
You can envoke the help call of the `read_nexus` tool from the command line:
70+
You can invoke the help call of the `read_nexus` tool from the command line:
7171

7272
```bash exec="on" source="material-block" result="ini"
7373
read_nexus --help
@@ -100,7 +100,7 @@ In the output, several concepts are reported as "NOT IN SCHEMA". These are exact
100100

101101
### The `-c` option
102102

103-
Aside from producing the full anotator log for the NeXus file, `read_nexus` can also be used with the `-c` (or `--concept` option). This helps you to find out all instances in the file that correspond to a given concept path. If you want to find all groups in the file that implement the `analyser` group within `/NXarpes/ENTRY/INSTRUMENT`, you can run:
103+
Aside from producing the full annotator log for the NeXus file, `read_nexus` can also be used with the `-c` (or `--concept` option). This helps you to find out all instances in the file that correspond to a given concept path. If you want to find all groups in the file that implement the `analyser` group within `/NXarpes/ENTRY/INSTRUMENT`, you can run:
104104

105105
```bash
106106
read_nexus -f src/pynxtools/data/201805_WSe2_arpes.nxs -c /NXarpes/ENTRY/INSTRUMENT/analyser

docs/learn/nexus/nexus-rules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In general, the names of NeXus group and field items are validated according to
2222
2323
Note that this explicitly also means that it is not allowed to have whitespace (including " ") in NeXus names.
2424
25-
A speciality of NeXus is the possibility to define concept names that are different to the names
25+
A specialty of NeXus is the possibility to define concept names that are different to the names
2626
of the actual data instances. In NeXus base classes and application definitions, there are three options for defining how instances must be named to match to the name of a given concept.
2727
This matching is based on a combination of the `name` and the `nameType` attributes
2828
of the concept.

docs/learn/pynxtools/nexus-validation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ One of the main advantages of using `pynxtools` is that it comes with its own va
1414

1515
The following use cases are covered by the validation in `pynxtools`:
1616

17-
- **Requiredness**: Warnings are logged if a required group/field/attribute is missing. This is also the case for required concepts within recommended/optional groups.
18-
- **Namefitting**: NeXus allows for variable instance names for a given concept through the combination of uppercase notation and the `nameType` attribute (for more information see the [section on NeXus naming rules](../nexus/nexus-rules.md#name-resolution).) In the validation process, the name of any instance data is compared to the defined NeXus concepts. Errors are raised if a group/field uses a name defined for a concept of a different NeXus type (i.e., if a group in the instance data has the same name as a defined field). If a given instance data point cannnot be fit to any concept, a warning is logged as well.
17+
- **Requirement concepts**: Warnings are logged if a required group/field/attribute is missing. This is also the case for required concepts within recommended/optional groups.
18+
- **Namefitting**: NeXus allows for variable instance names for a given concept through the combination of uppercase notation and the `nameType` attribute (for more information see the [section on NeXus naming rules](../nexus/nexus-rules.md#name-resolution).) In the validation process, the name of any instance data is compared to the defined NeXus concepts. Errors are raised if a group/field uses a name defined for a concept of a different NeXus type (i.e., if a group in the instance data has the same name as a defined field). If a given instance data point cannot be fit to any concept, a warning is logged as well.
1919
- **NeXus fields/attributes**:
2020
- For concepts where an [**enumeration**](https://manual.nexusformat.org/nxdl_desc.html#enumeration) is used, it is checked if the provided value is contained in the enumeration. For _closed_ enumerations, a warning is logged if the provided value does not match any of the enumeration choices. For _open_ enumerations, an info level message is logged in such cases.
2121
- Values of fields and attributes are checked against the [**NeXus data type**](https://manual.nexusformat.org/nxdl-types.html#index-0) and warnings are logged if a mismatch is detected.
@@ -35,13 +35,13 @@ During [data conversion](dataconverter-and-readers.md) within `pynxtools`, befor
3535

3636
It is also possible to define in the data conversion process whether the data shall be [compressed in the HDF5 file](https://docs.hdfgroup.org/archive/support/HDF5/faq/compression.html). Warnings are logged if the given compression strength (which must be between 0 and 9) is incorrect.
3737

38-
Since the validation is performed during the conversion, it is possible to automatically correct the data: as a convenience feature, any instance data that produces invalid files (e.g., when an HDF5 field would be named the same as a group in the NeXus defintions) are removed before writing the files. In addition, if a mismatch between the data type of the instance and the concept is detected, for we convert these values silently if possible (e.g., from int to float or from the string representation of bools (`"true"`/`"false"`) to actual booleans).
38+
Since the validation is performed during the conversion, it is possible to automatically correct the data: as a convenience feature, any instance data that produces invalid files (e.g., when an HDF5 field would be named the same as a group in the NeXus definitions) are removed before writing the files. In addition, if a mismatch between the data type of the instance and the concept is detected, for we convert these values silently if possible (e.g., from int to float or from the string representation of bools (`"true"`/`"false"`) to actual booleans).
3939

4040
## validate_nexus: Validate existing NeXus/HDF5 files
4141

4242
While we encourage NeXus users to convert their data using the `pynxtools` data conversion pipeline, we also realize that a lot of NeXus files are created using other applications. For such use cases, `pynxtools` provides a **standalone validator** (called **`validate_nexus`**). This CLI tool can be used to validate _existing_ HDF5 files against the NeXus application definition they claim to be comply with. Read more in the [API documentation](../../reference/cli-api.md#validate_nexus).
4343

44-
Validation of existing files is generally more straightforward than validating the `pynxtools` template as the NeXus type (i.e., group/fields/attribtues) of instance data is easily detected from the file structure. Therefore, no additional special rules are applied in `validate_nexus` other than those given above.
44+
Validation of existing files is generally more straightforward than validating the `pynxtools` template as the NeXus type (i.e., group/fields/attributes) of instance data is easily detected from the file structure. Therefore, no additional special rules are applied in `validate_nexus` other than those given above.
4545

4646
## read_nexus: NeXus file reader and debugger
4747

0 commit comments

Comments
 (0)