Skip to content

Commit

Permalink
Merge pull request #57 from NNPDF/pol_int
Browse files Browse the repository at this point in the history
Add polarized to integrability
  • Loading branch information
giacomomagni authored Dec 20, 2023
2 parents f95e751 + 897dde6 commit 71f4b73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pinefarm/external/integrability.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def __init__(self, *args, **kwargs):
self._q2 = np.power(self.theory["Q0"], 2)
self._info = _IntegrabilityRuncard(**yaml_dict)
self._evo2fl = evolution_to_flavour(self._info.flavour)
self.polarized = yaml_dict.get("polarized", "False")

def run(self):
"""Empty function."""
Expand All @@ -78,6 +79,7 @@ def generate_pineappl(self):
grid.set_key_value("initial_state_2", str(self._info.lepton_pid))
grid.set_key_value("runcard", json.dumps(self._info.asdict()))
grid.set_key_value("lumi_id_types", "pdg_mc_ids")
grid.set_key_value("polarized", self.polarized)
# Fill grid with x*Tn
# use subgrid because fill doesn't work?
x = self._info.xgrid
Expand Down

0 comments on commit 71f4b73

Please sign in to comment.