Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
parser-cp2k
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
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-cp2k
Commits
67f0b3ce
Commit
67f0b3ce
authored
7 years ago
by
Lauri Himanen
Browse files
Options
Downloads
Patches
Plain Diff
Simplified setup.py.
parent
35a90bed
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
parser/parser-cp2k/cp2kparser/scalainterface.py
+0
-17
0 additions, 17 deletions
parser/parser-cp2k/cp2kparser/scalainterface.py
setup.py
+1
-12
1 addition, 12 deletions
setup.py
with
1 addition
and
29 deletions
parser/parser-cp2k/cp2kparser/scalainterface.py
deleted
100644 → 0
+
0
−
17
View file @
35a90bed
"""
This is the access point to the parser for the scala layer in the
nomad project.
"""
from
__future__
import
absolute_import
import
sys
import
setup_paths
from
nomadcore.parser_backend
import
JsonParseEventsWriterBackend
from
cp2kparser
import
CP2KParser
if
__name__
==
"
__main__
"
:
# Initialise the parser with the main filename and a JSON backend
main_file
=
sys
.
argv
[
1
]
parser
=
CP2KParser
(
backend
=
JsonParseEventsWriterBackend
)
parser
.
parse
(
main_file
)
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
12
View file @
67f0b3ce
"""
This is a setup script for installing the parser locally on python path with
all the required dependencies. Used mainly for local testing.
"""
from
setuptools
import
setup
,
find_packages
#===============================================================================
def
main
():
# Start package setup
setup
(
name
=
"
cp2kparser
"
,
version
=
"
0.1
"
,
...
...
@@ -21,14 +15,9 @@ def main():
package_dir
=
{
''
:
'
parser/parser-cp2k
'
},
packages
=
find_packages
(),
install_requires
=
[
'
future
'
,
'
pint
'
,
'
numpy
'
,
'
mdtraj
'
,
'
ase
'
'
nomadcore
'
,
],
)
# Run main function by default
if
__name__
==
"
__main__
"
:
main
()
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