-
Notifications
You must be signed in to change notification settings - Fork 24
Fixing typos and integration of mkPlot when working with envelope nuisances #18
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
base: shapes-dev
Are you sure you want to change the base?
Changes from all commits
e2b7a0e
0a1e7a9
a93db82
d7b8933
a14c337
059f811
2ac29d6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,12 +8,14 @@ def flatten_samples(samples): | |
|
|
||
| subsamplesmap.append((sname, [])) | ||
| for sub in sample["subsamples"]: | ||
| samples["%s_%s" % (sname, sub)] = sample | ||
| subsamplesmap[-1][1].append("%s_%s" % (sname, sub)) | ||
| samples["%s" % (sub)] = sample | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure what the problem is, this is coming from original LatinoAnalisys code here
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The code will always prepend the "sample" name to the "subsample" name. Suppose you have a sample, and you split into subsamples with different event weight then the subsample name is not user defined and that could affect other part of the process, like tayloring the datacrds to combine models (e.g you have a sample "Zee" and you want it into the "sm" subsample, "quad_cW" subsample, .... you'll never be able to have the correct naming).
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't the final names be
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With the old code yes. With the new one it would be "sm" and "quad_cW" There is no way to get rid of the initial Zee_ in the old setup (if not using something external to mkShapesRDF) which is clearly unnecessary. |
||
| subsamplesmap[-1][1].append("%s" % (sub)) | ||
|
|
||
| sample.pop("subsamples") | ||
| samples.pop(sname) | ||
|
|
||
| print(subsamplesmap) | ||
|
|
||
| return subsamplesmap | ||
|
|
||
|
|
||
|
|
||
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.
Cannot support 3 different LCG releases. What was done for the master branch of latinos/mkShapesRDF was to stick with 103 for all the OS (see here).
Also el8 should be a unusual OS for the machines we work with.
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.
Ok then this should be integrated also here at some point.
I understand el9 is the standard but if the code is olnly made to work on el9 machines one should clearly specify it in the instruction at the early stages