Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
parser-orca
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This project is archived. Its data is
read-only
.
Show more breadcrumbs
nomad-lab
parser-orca
Commits
18e24ef0
Commit
18e24ef0
authored
Mar 20, 2020
by
Markus Scheidgen
Browse files
Options
Downloads
Patches
Plain Diff
Remove dependency on old metainfo.
parent
13e4daa6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
orcaparser/parser.py
+2
-9
2 additions, 9 deletions
orcaparser/parser.py
with
2 additions
and
9 deletions
orcaparser/parser.py
+
2
−
9
View file @
18e24ef0
...
...
@@ -710,10 +710,6 @@ parserInfo = {
"
version
"
:
"
1.0
"
}
import
nomad_meta_info
metaInfoPath
=
os
.
path
.
normpath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
nomad_meta_info
.
__file__
)),
"
orca.nomadmetainfo.json
"
))
metaInfoEnv
,
warnings
=
loadJsonFile
(
filePath
=
metaInfoPath
,
dependencyLoader
=
None
,
extraArgsHandling
=
InfoKindEl
.
ADD_EXTRA_ARGS
,
uri
=
None
)
class
OrcaParser
():
"""
A proper class envolop for running this parser from within python.
"""
def
__init__
(
self
,
backend
,
**
kwargs
):
...
...
@@ -723,16 +719,13 @@ class OrcaParser():
from
unittest.mock
import
patch
logging
.
info
(
'
orca parser started
'
)
logging
.
getLogger
(
'
nomadcore
'
).
setLevel
(
logging
.
WARNING
)
backend
=
self
.
backend_factory
(
meta
I
nfo
Env
)
backend
=
self
.
backend_factory
(
"
orca.nomad
meta
i
nfo
.json
"
)
with
patch
.
object
(
sys
,
'
argv
'
,
[
'
<exe>
'
,
'
--uri
'
,
'
nmd://uri
'
,
mainfile
]):
mainFunction
(
mainFileDescription
,
metaInfoEnv
,
None
,
parserInfo
,
superContext
=
OrcaContext
(),
superBackend
=
backend
)
return
backend
if
__name__
==
"
__main__
"
:
mainFunction
(
mainFileDescription
,
metaInfoEnv
,
parserInfo
,
superContext
=
OrcaContext
())
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment