-
Notifications
You must be signed in to change notification settings - Fork 14
Update docstrings in validphys with new datasets names #2490
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: master
Are you sure you want to change the base?
Changes from all commits
55c2c89
f017967
1f48f96
d21e103
1fa1191
72f105a
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 |
|---|---|---|
|
|
@@ -90,7 +90,7 @@ def get_pc_type( | |
| Returns | ||
| ------- | ||
| str or tuple of (str, str) | ||
| The PC type key(s). For the NMC ratio dataset | ||
| The PC type key(s). For the ratio dataset | ||
|
Member
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. here I think NMC was acting more as a noun referring to the NMC collaboration itself. But it's ok, it reads good either way |
||
| (``NMC_NC_NOTFIXED_EM-F2``), returns ``("f2p", "f2d")``. | ||
| For all other datasets, returns a single string key. | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -88,10 +88,10 @@ def experiments_to_dataset_inputs(experiments_list): | |
| >>> fit = API.fit(fit='NNPDF31_nnlo_as_0118_1000') | ||
|
Member
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. Same here. Instead of updating the results of the code, you should update the fit instead. A recent one you can use is: |
||
| >>> experiments = fit.as_input()['experiments'] | ||
| >>> dataset_inputs = experiments_to_dataset_inputs(experiments) | ||
| >>> dataset_inputs[:3] | ||
| [{'dataset': 'NMCPD', 'frac': 0.5}, | ||
| {'dataset': 'NMC', 'frac': 0.5}, | ||
| {'dataset': 'SLACP', 'frac': 0.5}] | ||
| >>> [{k: v for k, v in ds.items() if k != 'frac'} for ds in dataset_inputs[:3]] | ||
| [{'dataset': 'NMC_NC_NOTFIXED_EM-F2', 'variant': 'legacy_dw'}, | ||
| {'dataset': 'NMC_NC_NOTFIXED_P_EM-SIGMARED', 'variant': 'legacy'}, | ||
| {'dataset': 'SLAC_NC_NOTFIXED_P_EM-F2', 'variant': 'legacy_dw'}] | ||
| """ | ||
| dataset_inputs = [] | ||
| for experiment in experiments_list: | ||
|
|
||
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.
Here, instead of changing this manually you should run the code above and update the info (you will see that you cannot use
pseudodata_test_fit_n3fitand have to use an updated version such aspseudodata_test_fit_n3fit_260518), which has 15 replicas instead of 10 and which hasATLAS_Z0_7TEV_46FB_CC-Yas first dataset.