Skip to content
Snippets Groups Projects
Commit 94f97005 authored by Rodrigo G. Ruiz's avatar Rodrigo G. Ruiz Committed by Johannes Schumann
Browse files

add method to write jobcard to file

parent ff571a8a
No related branches found
No related tags found
1 merge request!12Restructure
......@@ -88,6 +88,9 @@ class Jobcard(f90nml.Namelist):
def read_jobcard(filepath):
return Jobcard(f90nml.read(filepath), filename=basename(filepath))
def write_jobcard(jobcard,filepath):
with open(filepath, 'w') as nml_file:
f90nml.write(jobcard, nml_file)
def generate_neutrino_jobcard(events,
process,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment