-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
pinefarm/src/pinefarm/external/mg5/__init__.py
Lines 98 to 111 in 1bfd31d
| # TODO: write a list with variables that should be replaced in the | |
| # launch file; for the time being we create the file here, but in the | |
| # future it should be read from the theory database EDIT: now available | |
| # in self.theory | |
| variables = json.loads((paths.subpkg.parents[1] / "variables.json").read_text()) | |
| variables["LHAPDF_ID"] = self.pdf_id | |
| # replace the variables with their values | |
| for name, value in variables.items(): | |
| launch = launch.replace(f"@{name}@", str(value)) | |
| # finally write launch | |
| launch_file = self.dest / "launch.txt" | |
| launch_file.write_text(launch) |
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request