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
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-cp2k
Commits
62c3d6ad
Commit
62c3d6ad
authored
Jun 20, 2016
by
Lauri Himanen
Browse files
Options
Downloads
Patches
Plain Diff
Updated the setuptools settings and README.
parent
baef37b7
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+9
-0
9 additions, 0 deletions
README.md
parser/parser-cp2k/cp2kparser/parser.py
+2
-2
2 additions, 2 deletions
parser/parser-cp2k/cp2kparser/parser.py
setup.py
+1
-2
1 addition, 2 deletions
setup.py
with
12 additions
and
4 deletions
README.md
+
9
−
0
View file @
62c3d6ad
...
@@ -63,6 +63,15 @@ folder *cp2k/test/unittests*. Here is an example of the call syntax:
...
@@ -63,6 +63,15 @@ folder *cp2k/test/unittests*. Here is an example of the call syntax:
mpl
.
show
()
mpl
.
show
()
```
```
To install this standalone version, you need to clone the repositories
"python-common", "nomad-meta-info", and "parser-cp2k" into the same folder.
Then install the python-common according to the instructions found in the
README. After that, you can install this package by running:
```
sh
python setup.py develop
--user
```
# Tools and Methods
# Tools and Methods
This section describes some of the guidelines that are used in the development
This section describes some of the guidelines that are used in the development
of this parser.
of this parser.
...
...
...
...
This diff is collapsed.
Click to expand it.
parser/parser-cp2k/cp2kparser/parser.py
+
2
−
2
View file @
62c3d6ad
...
@@ -15,8 +15,8 @@ class CP2KParser(ParserInterface):
...
@@ -15,8 +15,8 @@ class CP2KParser(ParserInterface):
After the implementation has been setup, you can parse the files with
After the implementation has been setup, you can parse the files with
parse().
parse().
"""
"""
def
__init__
(
self
,
main_file
,
metainfo_to_keep
=
None
,
backend
=
None
,
default_units
=
None
,
metainfo_units
=
None
):
def
__init__
(
self
,
main_file
,
metainfo_to_keep
=
None
,
backend
=
None
,
default_units
=
None
,
metainfo_units
=
None
,
debug
=
True
,
store
=
True
):
super
(
CP2KParser
,
self
).
__init__
(
main_file
,
metainfo_to_keep
,
backend
,
default_units
,
metainfo_units
)
super
(
CP2KParser
,
self
).
__init__
(
main_file
,
metainfo_to_keep
,
backend
,
default_units
,
metainfo_units
,
debug
,
store
)
def
setup_version
(
self
):
def
setup_version
(
self
):
"""
Setups the version by looking at the output file and the version
"""
Setups the version by looking at the output file and the version
...
...
...
...
This diff is collapsed.
Click to expand it.
parser/parser-cp2k/
setup.py
→
setup.py
+
1
−
2
View file @
62c3d6ad
...
@@ -11,7 +11,6 @@ def main():
...
@@ -11,7 +11,6 @@ def main():
setup
(
setup
(
name
=
"
cp2kparser
"
,
name
=
"
cp2kparser
"
,
version
=
"
0.1
"
,
version
=
"
0.1
"
,
include_package_data
=
True
,
package_data
=
{
package_data
=
{
'
cp2kparser.versions.cp2k262
'
:
[
'
input_data/cp2k_input_tree.pickle
'
],
'
cp2kparser.versions.cp2k262
'
:
[
'
input_data/cp2k_input_tree.pickle
'
],
},
},
...
@@ -19,6 +18,7 @@ def main():
...
@@ -19,6 +18,7 @@ def main():
author
=
"
Lauri Himanen
"
,
author
=
"
Lauri Himanen
"
,
author_email
=
"
lauri.himanen@aalto.fi
"
,
author_email
=
"
lauri.himanen@aalto.fi
"
,
license
=
"
GPL3
"
,
license
=
"
GPL3
"
,
package_dir
=
{
''
:
'
parser/parser-cp2k
'
},
packages
=
find_packages
(),
packages
=
find_packages
(),
install_requires
=
[
install_requires
=
[
'
pint
'
,
'
pint
'
,
...
@@ -26,7 +26,6 @@ def main():
...
@@ -26,7 +26,6 @@ def main():
'
mdtraj
'
,
'
mdtraj
'
,
'
ase
'
'
ase
'
],
],
zip_safe
=
False
)
)
# Run main function by default
# Run main function by default
...
...
...
...
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