Skip to content
Snippets Groups Projects
Commit bc2008ea authored by juacrumar's avatar juacrumar
Browse files

apply review comments

parent 1cc095d7
Branches
No related tags found
1 merge request!2013Remove apfelcomb flags
......@@ -140,5 +140,5 @@ atomic = true
line_length = 100
profile = "black" # https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#custom-configuration
skip_gitignore = true
known_first_party = ["validphys", "eko", "n3fit", "reportengine"]
known_first_party = ["validphys", "eko", "n3fit", "nnpdf_data", "reportengine"]
force_sort_within_sections = true
......@@ -244,7 +244,9 @@ def pineappl_reader(fkspec):
name = fkspec.fkpath[0].name.replace(f".{EXT}", "")
if np.allclose(sigma.loc[1:], 0.0):
# For old fktables, maybe the rest is filled with 0s
# Old denominator fktables were filled with 0s beyond the first point
# and they needed to be post-processed to repeat the same point many time
# Instead, drop everything beyond the 1st point (used 0:0 to keep the same kind of df)
sigma = sigma.loc[0:0]
ndata = 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment