Skip to content

Commit

Permalink
Merge pull request #343 from smash-transport/ngoetz/fix_oscar_write
Browse files Browse the repository at this point in the history
Fix multi event bug for SMASH IC writing
  • Loading branch information
NGoetz authored Dec 12, 2024
2 parents e735d31 + 49064d0 commit 571f071
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/sparkx/Oscar.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,10 @@ def print_particle_lists_to_file(self, output_file: str) -> None:
"proc_id_origin": "%d",
"proc_type_origin": "%d",
"time_last_coll": "%g",
"pdg_mother1": "%g",
"pdg_mother2": "%g",
"baryon_number": "%g",
"strangeness": "%g",
"pdg_mother1": "%d",
"pdg_mother2": "%d",
"baryon_number": "%d",
"strangeness": "%d",
}
if self.oscar_format_ == "ASCII":
format_custom = " ".join(
Expand Down Expand Up @@ -436,7 +436,10 @@ def print_particle_lists_to_file(self, output_file: str) -> None:
elif (
i == 0
and len(particle_output[0]) > 20
and self.oscar_format_ == "Oscar2013Extended"
and (
self.oscar_format_ == "Oscar2013Extended"
or self.oscar_format_ == "Oscar2013Extended_IC"
)
):
format_oscar2013_extended = (
format_oscar2013_extended
Expand Down

0 comments on commit 571f071

Please sign in to comment.