Commit 124b42b9 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Added metainfo python code.

parent e772c6d9
......@@ -22,8 +22,6 @@ from datetime import datetime
from nomadcore.simple_parser import SimpleMatcher
from nomadcore.baseclasses import ParserInterface, AbstractBaseParser
from nomad.parsing import LocalBackend
class MPESParserInterface(ParserInterface):
def get_metainfo_filename(self):
......
import sys
from nomad.metainfo import Environment
from nomad.metainfo.legacy import LegacyMetainfoEnvironment
import mpesparser.metainfo.mpes
import nomad.datamodel.metainfo.general
import nomad.datamodel.metainfo.general_experimental
import nomad.datamodel.metainfo.general_experimental_method
import nomad.datamodel.metainfo.general_experimental_sample
import nomad.datamodel.metainfo.general_experimental_data
m_env = LegacyMetainfoEnvironment()
m_env.m_add_sub_section(Environment.packages, sys.modules['mpesparser.metainfo.mpes'].m_package) # type: ignore
m_env.m_add_sub_section(Environment.packages, sys.modules['nomad.datamodel.metainfo.general'].m_package) # type: ignore
m_env.m_add_sub_section(Environment.packages, sys.modules['nomad.datamodel.metainfo.general_experimental'].m_package) # type: ignore
m_env.m_add_sub_section(Environment.packages, sys.modules['nomad.datamodel.metainfo.general_experimental_method'].m_package) # type: ignore
m_env.m_add_sub_section(Environment.packages, sys.modules['nomad.datamodel.metainfo.general_experimental_sample'].m_package) # type: ignore
m_env.m_add_sub_section(Environment.packages, sys.modules['nomad.datamodel.metainfo.general_experimental_data'].m_package) # type: ignore
This diff is collapsed.
......@@ -384,7 +384,7 @@
"dtypeStr": "f",
"shape": ["number_of_momentum_calibration_coefficients"],
"superNames": ["section_method"],
"units": "AA**-1"
"units": "angstrom**-1"
},
{
"description": "Pixel y axis to ky momentum calibration.",
......@@ -392,7 +392,7 @@
"dtypeStr": "f",
"shape": ["number_of_momentum_calibration_coefficients"],
"superNames": ["section_method"],
"units": "AA**-1"
"units": "angstrom**-1"
},
{
"description": "Number of the energy calibration parameters for the detector.",
......@@ -440,7 +440,7 @@
"dtypeStr": "f",
"shape": ["none_shape"],
"superNames": ["section_method"],
"units": "AA**-1"
"units": "angstrom**-1"
},
{
"description": "Spatial resolution of the source.",
......
Supports Markdown
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