Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
parser-amber
Commits
0865874d
Commit
0865874d
authored
May 12, 2020
by
Markus Scheidgen
Browse files
Adapted to nomad-fair.
parent
6656ac16
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
amberparser/AMBERCommon.py
View file @
0865874d
...
...
@@ -19,12 +19,13 @@ from nomadcore.caching_backend import CachingLevel
from
nomadcore.simple_parser
import
mainFunction
from
nomadcore.simple_parser
import
SimpleMatcher
as
SM
from
.AMBERDictionary
import
get_unitDict
,
get_nameListDict
,
get_fileListDict
,
set_excludeList
,
set_includeList
from
.
MetaInfoStorage
import
COMMON_META_INFO_PATH
,
PUBLIC_META_INFO_PATH
from
.
import
MetaInfoStorage
as
mStore
from
MetaInfoStorage
import
COMMON_META_INFO_PATH
,
PUBLIC_META_INFO_PATH
import
MetaInfoStorage
as
mStore
import
logging
import
json
import
os
import
re
import
metainfo
PARSERNAME
=
"AMBER"
PROGRAMNAME
=
"amber"
...
...
@@ -38,8 +39,8 @@ PARSER_INFO_DEFAULT = {
}
META_INFO_PATH
=
os
.
path
.
normpath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)),
"
../../../../nomad-meta-info/meta_info/nomad_meta_info/
amber.nomadmetainfo.json"
))
os
.
path
.
dirname
(
os
.
path
.
abspath
(
metainfo
.
__file__
)),
"amber.nomadmetainfo.json"
))
LOGGER
=
logging
.
getLogger
(
"nomad.AMBERParser"
)
...
...
amberparser/AMBERParser.py
View file @
0865874d
...
...
@@ -1063,6 +1063,7 @@ class AMBERParserInterface():
backend
=
self
.
backend_factory
(
"amber.nomadmetainfo.json"
)
parserInfo
=
{
'name'
:
'amber-parser'
,
'version'
:
'1.0'
}
context
=
AMBERParser
()
context
.
coverageIgnore
=
re
.
compile
(
r
"^(?:"
+
r
"|"
.
join
(
context
.
coverageIgnoreList
)
+
r
")$"
)
with
patch
.
object
(
sys
,
'argv'
,
[
'<exe>'
,
'--uri'
,
'nmd://uri'
,
mainfile
]):
mainFunction
(
mainFileDescription
=
context
.
mainFileDescription
(),
...
...
amberparser/MetaInfoStorage.py
deleted
100644 → 0
View file @
6656ac16
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment