Commit 67f0b3ce authored by Lauri Himanen's avatar Lauri Himanen
Browse files


parent 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)
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 from setuptools import setup, find_packages
def main(): def main():
# Start package setup
setup( setup(
name="cp2kparser", name="cp2kparser",
version="0.1", version="0.1",
...@@ -21,14 +15,9 @@ def main(): ...@@ -21,14 +15,9 @@ def main():
package_dir={'': 'parser/parser-cp2k'}, package_dir={'': 'parser/parser-cp2k'},
packages=find_packages(), packages=find_packages(),
install_requires=[ install_requires=[
'future', 'nomadcore',
], ],
) )
# Run main function by default
if __name__ == "__main__": if __name__ == "__main__":
main() main()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment