-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
correct sorting of level1 data #1757
Conversation
@@ -369,15 +369,21 @@ def make_level1_data(data, level0_commondata_wc, filterseed, experiments_index, | |||
|
|||
indexed_level1_data = indexed_make_replica(experiments_index, level1_data) | |||
|
|||
dataset_order = [cd.setname for cd in level0_commondata_wc] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not that it matters much, but we should be doing this with a dict rather than a list, to avoid quadratic behavior.
# ===== create commondata instances with central values given by pseudo_data =====# | ||
level1_commondata_dict = {c.setname: c for c in level0_commondata_wc} | ||
level1_commondata_instances_wc = [] | ||
|
||
# note that groupby sorts alphabetically |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could add sort=False
to groupby. AFAICT the behaviour is not documented, as keeping the order, so I would not touch the rest in any way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sort=False
does not seem to solve the problem
Allow different matching scale for the photon
Enable nf=3 with `evolven3fit_new`.
Allow categorical variables in smpdf plots
QED tests
* Add luminosity channels This adds lumi channels corresponding to the main production channels for W and Z bosons. --------- Co-authored-by: Juan M. Cruz-Martinez <juacrumar@lairen.eu>
Avoid using resources at the module level
…etupfit data is written to folder using _filter_closure_data function. This function is looped over by filter_closure_data_by_experiment
…npdf into fix_bug_make_level1_data
Apart from the ordering of the level1 commondata list, the following bug is fixed in the present PR.
Gives:
|
@comane the diff is unreadable now unfortunately. Could you please make it so only your changes show up? |
…npdf into fix_bug_make_level1_data
When you opened this PR the additional commits were not yet in master. Perhaps changing the base branch to something else and reverting it to master corrects the diffs in this interface? Just a guess though.
Maybe I'm just misinterpreting what you mean, but there is a genuine difference between |
Indeed the generic approach is something like
Depending on how creative you have been in the current branch, it may be simpler to start over and |
PR due to issue #1755