Commit 98455429 authored by Markus Scheidgen's avatar Markus Scheidgen

More docs on how to start.

parent 7d911fa1
......@@ -8,7 +8,8 @@ best to fork this skeleton and use it as a template.
## Setup and run example
We are currently targeting Python 3.6. Some nomad dependencies might still have problems
with 3.7++. It will definitely not work with 2.x.
with 3.7++. It will definitely not work with 2.x. If you run into troubles, you could
try to ignore some dependencies. Most of them are only used in the DFT context.
Best use a virtual environment:
......@@ -19,13 +20,20 @@ source .pyenv/bin/activate
Clone and install the nomad infrastructure and the necessary dependencies (including this parser)
git clone nomad
cd nomad
git submodule update --init
pip install -r requirements.txt
./ -e
pip install -e .
Fork the this project, e.g. [gitlab](
The parsers (among other things) are git submodules. The `./` will run
through all the sub modules and install them as pip packages (be in you virtual env!).
Fork this project, e.g. [gitlab](
Rename your fork in its settings/advanced and move it to the nomad-lab namespace.
Choose a name that starts with `parser-`, e.g. `parser-your-parser-name`.
You'll need a []( account.
Add your parser to the nomad project on a separate branch:
......@@ -35,27 +43,35 @@ git submodule add
Do the necessary changes:
- []( Change the project metadata
- [skeletonparser](skeletonparser): Change the directory name
- [skeletonparser](skeletonparser): Change the directory name, i.e. python package name (no uppercases, no `_` please)
- [skeletonparser/](skeletonparser/ Implement your parser, change the class names
- [skeletonparser/](skeletonparser/ Change the module/class names
- [skeletonparser/skeleton.nomadmetainfo.json](skeletonparser/skeleton.nomadmetainfo.json): Change the name, add your metadata definitions.
- []( Change this readme accordingly.
- probably some other things I forgot.
General metadata quantities (those that we can agree on) go to
But we should agree first. In the mean time, just put them in [skeletonparser/skeleton.nomadmetainfo.json](skeletonparser/skeleton.nomadmetainfo.json).
You can browse around `dependencies/nomad-meta-info/meta_info/nomad_meta_info/` to
see example definitions. **You cannot add values or open sections without defining them first!**
To run the parser:
cd nomad/dependencies/parsers/your-parsername
python -m your-parser-pythonpackage <test_file>
cd nomad/dependencies/parsers/your-parser-name
python -m yourparserpythonpackage tests/example.metadata.json
## Docs
Click through the [nomad archive page](
to learn about the *meta-info* metadata format and how to define your metadata.
[nomad@fairdi, tmp.](
Here is a more involved tutorial (but its pretty DFT and parsing text files specific):
[nomad@fairdi docs](
## FAQ
For any questions, please open issues (regarding parser development and using this skeleton)
For any questions, **please open issues** (regarding parser development and using this skeleton)
in this [parser-skeleton project](
We will compile a FAQ from your issues.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment