Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
parser-elk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nomad-lab
parser-elk
Commits
0a43285a
Commit
0a43285a
authored
5 years ago
by
Markus Scheidgen
Browse files
Options
Downloads
Patches
Plain Diff
Remove dependency on old metainfo.
parent
a6dbd8ce
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#81324
failed
4 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
elkparser/parser_elk.py
+2
-9
2 additions, 9 deletions
elkparser/parser_elk.py
with
2 additions
and
9 deletions
elkparser/parser_elk.py
+
2
−
9
View file @
0a43285a
...
...
@@ -310,10 +310,6 @@ cachingLevelForMetaName = {
}
import
nomad_meta_info
metaInfoPath
=
os
.
path
.
normpath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
nomad_meta_info
.
__file__
)),
"
elk.nomadmetainfo.json
"
))
metaInfoEnv
,
warnings
=
loadJsonFile
(
filePath
=
metaInfoPath
,
dependencyLoader
=
None
,
extraArgsHandling
=
InfoKindEl
.
ADD_EXTRA_ARGS
,
uri
=
None
)
class
ElkParser
():
"""
A proper class envolop for running this parser from within python.
"""
def
__init__
(
self
,
backend
,
**
kwargs
):
...
...
@@ -323,17 +319,14 @@ class ElkParser():
from
unittest.mock
import
patch
logging
.
info
(
'
elk parser started
'
)
logging
.
getLogger
(
'
nomadcore
'
).
setLevel
(
logging
.
WARNING
)
backend
=
self
.
backend_factory
(
meta
I
nfo
Env
)
backend
=
self
.
backend_factory
(
"
elk.nomad
meta
i
nfo
.json
"
)
with
patch
.
object
(
sys
,
'
argv
'
,
[
'
<exe>
'
,
'
--uri
'
,
'
nmd://uri
'
,
mainfile
]):
mainFunction
(
mainFileDescription
=
mainFileDescription
,
metaInfoEnv
=
metaInfoEnv
,
metaInfoEnv
=
None
,
parserInfo
=
parserInfo
,
cachingLevelForMetaName
=
cachingLevelForMetaName
,
superContext
=
ElkContext
(),
superBackend
=
backend
,
defaultSectionCachingLevel
=
True
)
return
backend
if
__name__
==
"
__main__
"
:
mainFunction
(
mainFileDescription
,
metaInfoEnv
,
parserInfo
,
cachingLevelForMetaName
=
cachingLevelForMetaName
,
superContext
=
ElkContext
())
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
register
or
sign in
to comment