Skip to content

Commit

Permalink
Merge pull request #128 from NNPDF/polarized_opcards
Browse files Browse the repository at this point in the history
Polarized opcards
  • Loading branch information
felixhekhorn authored Oct 18, 2023
2 parents 423b137 + ca5eca6 commit bcdbaf9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pineko/evolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ def write_operator_card(pineappl_grid, default_card, card_path, tcard):
operators_card["eko_version"] = metadata.version("eko")
pineko_version = metadata.version("pineko")

# switch on polarization ?
kv = pineappl_grid.key_values()
if "polarized" in kv:
operators_card["configs"]["polarized"] = kv["polarized"] == "True"

# Some safety checks
if (
operators_card["configs"]["evolution_method"] == "truncated"
Expand Down

0 comments on commit bcdbaf9

Please sign in to comment.