diff --git a/km3buu/jobcard.py b/km3buu/jobcard.py index 3db1c675329b6df9adecda4003bc7a6ada2c48b8..4e6353c594fe8c9437395e52b0bf8e106f80829b 100644 --- a/km3buu/jobcard.py +++ b/km3buu/jobcard.py @@ -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,