Skip to content

Commit

Permalink
black for formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
comane committed Jun 26, 2023
1 parent f266993 commit c538371
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions validphys2/src/validphys/pseudodata.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def make_level1_data(data, level0_commondata_wc, filterseed, data_index, sep_mul

indexed_level1_data = indexed_make_replica(data_index, level1_data)

dataset_order = {cd.setname: i for i, cd in enumerate(level0_commondata_wc)}
dataset_order = {cd.setname: i for i, cd in enumerate(level0_commondata_wc)}

# ===== create commondata instances with central values given by pseudo_data =====#
level1_commondata_dict = {c.setname: c for c in level0_commondata_wc}
Expand All @@ -382,7 +382,7 @@ def make_level1_data(data, level0_commondata_wc, filterseed, data_index, sep_mul
)
# sort back so as to mantain same order as in level0_commondata_wc
level1_commondata_instances_wc.sort(key=lambda x: dataset_order[x.setname])

return level1_commondata_instances_wc


Expand Down
6 changes: 2 additions & 4 deletions validphys2/src/validphys/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ def data_index(data):
"""
Given a core.DataGroupSpec instance, return pd.MultiIndex
with the following levels:
1. experiment
2. datasets
3. datapoints indices (cuts already applied to)
Parameters
----------
Expand All @@ -173,9 +173,7 @@ def data_index(data):
"""
tuples = []


for ds in data.datasets:

experiment = get_info(ds).experiment

for i in ds.cuts.load():
Expand Down

0 comments on commit c538371

Please sign in to comment.