Skip to content

Propagate more theory variables to Madgraph #101

@felixhekhorn

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions