Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
python-common
Commits
2a0aed4b
Commit
2a0aed4b
authored
9 years ago
by
Lauri Himanen
Browse files
Options
Downloads
Patches
Plain Diff
Added a common method signature for setting up the main parser.
parent
10c3c196
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
common/python/nomadcore/baseclasses.py
+12
-0
12 additions, 0 deletions
common/python/nomadcore/baseclasses.py
with
12 additions
and
0 deletions
common/python/nomadcore/baseclasses.py
+
12
−
0
View file @
2a0aed4b
...
@@ -121,6 +121,18 @@ class ParserInterface(with_metaclass(ABCMeta, object)):
...
@@ -121,6 +121,18 @@ class ParserInterface(with_metaclass(ABCMeta, object)):
"""
"""
pass
pass
# @abstractmethod # Keep this way for a file in order to avoid breaking
def
setup_main_parser
(
self
,
version_dictionary
):
"""
Setup the attribute
'
main_parser
'
which contains the object that
starts the parsing from the main file. The main parser should be
decided based on the information contained on the given dictionary.
Args:
version_dictionary: Dictionary containing version information. It
can include the version number, run type, etc.
"""
pass
@abstractmethod
@abstractmethod
def
get_metainfo_filename
(
self
):
def
get_metainfo_filename
(
self
):
"""
This function should return the name of the metainfo file that is
"""
This function should return the name of the metainfo file that is
...
...
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