Skip to content

Propagate more theory variables to Madgraph #101

Description

@felixhekhorn

# 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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions