Commit d9ca950a authored by Lauri Himanen's avatar Lauri Himanen
Browse files

Added a function for getting the regex that is used to match the main file, added a dependency.

parent 9e2f9716
...@@ -60,6 +60,17 @@ class CP2KParser(ParserInterface): ...@@ -60,6 +60,17 @@ class CP2KParser(ParserInterface):
# for the version is found, use the main parser for CP2K 2.6.2 # for the version is found, use the main parser for CP2K 2.6.2
self.setup_main_parser({"version_id": version_id, "run_type": run_type}) self.setup_main_parser({"version_id": version_id, "run_type": run_type})
@staticmethod
def get_mainfile_regex():
regex_str = (
" \*\*\*\* \*\*\*\* \*\*\*\*\*\* \*\* PROGRAM STARTED AT\s.*\n"
" \*\*\*\*\* \*\* \*\*\* \*\*\* \*\* PROGRAM STARTED ON\s*.*\n"
" \*\* \*\*\*\* \*\*\*\*\*\* PROGRAM STARTED BY .*\n"
" \*\*\*\*\* \*\* \*\* \*\* \*\* PROGRAM PROCESS ID .*\n"
" \*\*\*\* \*\* \*\*\*\*\*\*\* \*\* PROGRAM STARTED IN .*\n"
)
return regex_str
def get_metainfo_filename(self): def get_metainfo_filename(self):
return "cp2k.nomadmetainfo.json" return "cp2k.nomadmetainfo.json"
......
...@@ -21,6 +21,7 @@ def main(): ...@@ -21,6 +21,7 @@ def main():
package_dir={'': 'parser/parser-cp2k'}, package_dir={'': 'parser/parser-cp2k'},
packages=find_packages(), packages=find_packages(),
install_requires=[ install_requires=[
'future',
'pint', 'pint',
'numpy', 'numpy',
'mdtraj', 'mdtraj',
......
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