-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix example #103
Merged
Merged
fix example #103
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
# XPS Reader | ||
# Introduction | ||
|
||
## Introduction | ||
This example presents the capabilities of the NOMAD platform to store and standardize XPS data. It shows the generation of a NeXus file according to the [`NXxps`](https://fairmat-nfdi.github.io/nexus_definitions/classes/contributed_definitions/NXxps.html#nxxps) application definition and a successive analysis of an example data set. | ||
|
||
This example presents the capabilities of the NOMAD platform to store and standardize XPS data. It shows the generation of a NeXus file according to the [NXmpes](https://manual.nexusformat.org/classes/contributed_definitions/NXmpes.html#nxmpes) application definition and a successive analysis of an example data set. | ||
|
||
## Viewing uploaded data | ||
# Viewing uploaded data | ||
|
||
Below, you find an overview of your uploaded data. | ||
Click on the `> /` button to get a list of your data or select **FILES** from the top menu of this upload. | ||
Click on the `> /` button to get a list of your file or select **FILES** from the top menu of this upload. | ||
|
||
The general structure of this example is the following: | ||
- The starting point is the `xps.scheme.archive.yaml` file. This file defines a schema for the | ||
electronic lab notebook (ELN) for XPS data. The ELN follows the general structure of NOMAD ELN templates and you may refer to the [documentation](https://nomad-lab.eu/prod/v1/staging/docs/archive.html) or a [YouTube tutorial](https://youtu.be/o5ETHmGmnaI) (~1h) for further information. This schema contains all the NeXus concepts that are defined in the `NXxps` application definition, but are not provided through the raw experimental file. | ||
Hence, these are the information that the user should enter. | ||
- The file `eln_conversion.archive.yaml` has two functionalities: 1) it implements the schema defined in `xps.scheme.archive.yaml` and prefills it with some values for this particular example, and 2) it uses the `ElnYamlConverter` from the NOMAD plugin [`pynxtools`](https://github.com/FAIRmat-NFDI/pynxtools) to convert the NOMAD ELN into a YAML file that can be used to populate the NeXus file. | ||
- In the next step, the `nexus_conversion.archive.json` is used to generate a NeXus file according to the `NXxps` application definition by calling the `NexusDataConverter` from `pynxtools`. It uses as input file the raw measurement file (`EX439_S718_Au_in_25_mbar_O2.sle`) as well as the newly generated `eln_data.yaml` to create the NeXus file `Au_25_mbar_O2_no_align.nxs`. You may view your supplied or generated NeXus files here with the H5Web viewer. To do so open the **FILES** tab and just select the `.nxs` file. | ||
- Finally, the `NexusParser` from `pynxtools` is called to read in the data in the NeXus file into the NOMAD metainfo. You can explore the parsed data in the **DATA** tab. | ||
|
||
You may add your own files to the upload or experiment with the pre-existing electronic lab notebook (ELN) example. | ||
The ELN follows the general structure of NOMAD ELN templates and you may refer to the [documentation](https://nomad-lab.eu/prod/v1/staging/docs/archive.html) or a [YouTube tutorial](https://youtu.be/o5ETHmGmnaI) (~1h) | ||
for further information. | ||
When the ELN is saved a NeXus file will be generated from the provided example data. | ||
You may also view your supplied or generated NeXus files here with the H5Web viewer. | ||
To do so open the **FILES** tab and just select a `.nxs` file. | ||
|
||
## Analyzing the data | ||
# Analyzing the data | ||
|
||
The examples work through the use of NOMAD remote tools hub (NORTH) containers, i.e. besides using and dealing with the uploaded XPS data, an analysis container can be started. If you want to execute the examples locally you may also use your local python and jupyterlab installation. Please refer to the documentation of [pynxtools](https://github.com/FAIRmat-NFDI/pynxtools.git) and [h5web](https://github.com/silx-kit/h5web) on how to install it on your machine. | ||
|
||
Note: To upload your own xps data file, you must check **"eln_data.yaml"** file to provide all the required fields. In xps some required fields or attributes do not come with xps raw data. | ||
|
||
To start an analysis, note your upload id (which you find on top of this explanation) and select **ANALYZE** from the top menu, then **NOMAD Remote Tools Hub**. | ||
In the appearing list you'll find the `xps` container, click on it and click **LAUNCH**. | ||
After a few moments a new tab will open which displays a jupyter environment providing the required analysis tools. | ||
To find the examples navigate to uploads inside the jupyter hub browser and select the folder with your noted upload id. | ||
There you'll find the example `ipynb` notebook for data analysis (E2). | ||
Double-clicking the notebook will open the example in the jupyter main window. | ||
|
||
## Where to go from here? | ||
# Where to go from here? | ||
|
||
If you're interested in using this pipeline and NOMAD in general you'll find support at [FAIRmat](https://www.fairmat-nfdi.eu/fairmat/consortium). | ||
|
||
For questions regarding the experiment or this specific example contact [Lukas Pielsticker](https://www.fairmat-nfdi.eu/fairmat/fairmat_/fairmatteam), [Rubel Mozumder](https://www.fairmat-nfdi.eu/fairmat/fairmat_/fairmatteam), or [Florian Dobener](https://www.fairmat-nfdi.eu/fairmat/fairmat_/fairmatteam). | ||
For questions regarding the experiment or this specific example contact [Lukas Pielsticker](https://www.fairmat-nfdi.eu/fairmat/fairmat_/fairmatteam) or the rest of the [FAIRmat team](https://www.fairmat-nfdi.eu/fairmat/fairmat_/fairmatteam). |
195 changes: 0 additions & 195 deletions
195
src/pynxtools_xps/nomad/examples/Specs_conversion.archive.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
suggestion (typo): There appears to be a typo: 'list of your file' should be 'list of your files'