Skip to content

Commit

Permalink
utils fix
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomomagni committed Dec 3, 2024
1 parent c348992 commit 3660158
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nnpdf_data/nnpdf_data/filter_utils/nmc_hepdata_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def write_files(df, store_path):

# Write central data
data_central_yaml = {"data_central": [float(x) for x in df["F2"]]}
with open(store_path / "data.yaml", "w", encoding="utf-8") as file:
with open(store_path / "data_EM-F2-HEPDATA.yaml", "w", encoding="utf-8") as file:
yaml.dump(data_central_yaml, file)

# Write kin file
Expand All @@ -41,7 +41,7 @@ def write_files(df, store_path):
}
kin.append(kin_value)
kinematics_yaml = {"bins": kin}
with open(store_path / "kinematics.yaml", "w", encoding="utf-8") as file:
with open(store_path / "kinematics_EM-F2-HEPDATA.yaml", "w", encoding="utf-8") as file:
yaml.dump(kinematics_yaml, file, sort_keys=False)

# loop on data points
Expand All @@ -55,5 +55,5 @@ def write_files(df, store_path):
error.append(e)

uncertainties_yaml = {"definitions": error_definition, "bins": error}
with open(store_path / "uncertainties.yaml", "w", encoding="utf-8") as file:
with open(store_path / "uncertainties_EM-F2-HEPDATA.yaml", "w", encoding="utf-8") as file:
yaml.dump(uncertainties_yaml, file, sort_keys=False)

0 comments on commit 3660158

Please sign in to comment.