make a dataspecs positivity plot and update compfits report to use it#977
Merged
Conversation
wilsonmr
commented
Oct 16, 2020
…ferent theory settings
Contributor
Author
|
please check that you agree with the check |
Contributor
|
Note that we have nnpdf/validphys2/src/validphys/dataplots.py Line 471 in bc04924 Perhaps the two checks can be made to work into one? |
Contributor
|
Your example runcard fails now: Traceback (most recent call last):
File "/home/zah/anaconda3/bin/validphys", line 33, in <module>
sys.exit(load_entry_point('validphys', 'console_scripts', 'validphys')())
File "/home/zah/nngit/nnpdf/validphys2/src/validphys/scripts/main.py", line 10, in main
vp.main()
File "/home/zah/nngit/nnpdf/validphys2/src/validphys/app.py", line 153, in main
a.main()
File "/home/zah/anaconda3/lib/python3.7/site-packages/reportengine/app.py", line 376, in main
self.run()
File "/home/zah/nngit/nnpdf/validphys2/src/validphys/app.py", line 149, in run
super().run()
File "/home/zah/anaconda3/lib/python3.7/site-packages/reportengine/app.py", line 342, in run
rb.resolve_fuzzytargets()
File "/home/zah/anaconda3/lib/python3.7/site-packages/reportengine/resourcebuilder.py", line 370, in resolve_fuzzytargets
self.resolve_fuzzytarget(target)
File "/home/zah/anaconda3/lib/python3.7/site-packages/reportengine/resourcebuilder.py", line 379, in resolve_fuzzytarget
self.process_targetspec(fuzzytarget.name, spec, fuzzytarget.extraargs)
File "/home/zah/anaconda3/lib/python3.7/site-packages/reportengine/resourcebuilder.py", line 388, in process_targetspec
gen.send(None)
File "/home/zah/anaconda3/lib/python3.7/site-packages/reportengine/resourcebuilder.py", line 445, in _process_requirement
yield from self._make_node(name, nsspec, extraargs, parents)
File "/home/zah/anaconda3/lib/python3.7/site-packages/reportengine/resourcebuilder.py", line 461, in _make_node
yield from self._make_callspec(f, name, nsspec, extraargs, parents)
File "/home/zah/anaconda3/lib/python3.7/site-packages/reportengine/resourcebuilder.py", line 524, in _make_callspec
gen.send(cs)
File "/home/zah/anaconda3/lib/python3.7/site-packages/reportengine/resourcebuilder.py", line 427, in _process_requirement
yield from self._make_node((name, val.value), nsspec, extraargs, parents)
File "/home/zah/anaconda3/lib/python3.7/site-packages/reportengine/resourcebuilder.py", line 457, in _make_node
yield from self._make_collect_targets(f, name, nsspec, parents)
File "/home/zah/anaconda3/lib/python3.7/site-packages/reportengine/resourcebuilder.py", line 666, in _make_collect_targets
walk(colltargets.root, nsspec)
File "/home/zah/anaconda3/lib/python3.7/site-packages/reportengine/resourcebuilder.py", line 664, in walk
walk(newd, newspec)
File "/home/zah/anaconda3/lib/python3.7/site-packages/reportengine/resourcebuilder.py", line 653, in walk
gen.send(my_node)
File "/home/zah/anaconda3/lib/python3.7/site-packages/reportengine/resourcebuilder.py", line 445, in _process_requirement
yield from self._make_node(name, nsspec, extraargs, parents)
File "/home/zah/anaconda3/lib/python3.7/site-packages/reportengine/resourcebuilder.py", line 461, in _make_node
yield from self._make_callspec(f, name, nsspec, extraargs, parents)
File "/home/zah/anaconda3/lib/python3.7/site-packages/reportengine/resourcebuilder.py", line 551, in _make_callspec
environment=self.environment)
File "/home/zah/anaconda3/lib/python3.7/site-packages/reportengine/checks.py", line 131, in check
res = saturate(check_func, ns)
File "/home/zah/anaconda3/lib/python3.7/site-packages/reportengine/utils.py", line 53, in saturate
return func(**kwargs)
File "/home/zah/nngit/nnpdf/validphys2/src/validphys/dataplots.py", line 934, in _check_same_posdataset_name
_check_same_dataset_name([ds.commondataspec for ds in dataspecs_posdataset])
File "/home/zah/anaconda3/lib/python3.7/site-packages/reportengine/checks.py", line 114, in decorator
add_check(f, check_func)
File "/home/zah/anaconda3/lib/python3.7/site-packages/reportengine/checks.py", line 44, in add_check
f.checks = [check]
AttributeError: 'list' object has no attribute 'checks' |
Zaharid
approved these changes
Oct 21, 2020
Contributor
Author
|
ah I wrongly thought you could call checks as regular functions, my bad |
Contributor
|
They can't since call means apply as decorator for them. Anyhow, I checked that |
Contributor
Author
|
Ah of course |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #596
example:
https://vp.nnpdf.science/0vGt_IumTVKz5fLrR52jow==
is this what you had in mind @Zaharid ? I read your comments on the issue a few times and it still hurt my head but my interpretation was the
matched_positivity_from_dataspecswas fine but we needed to collect over dataspecs properly inside of that for the plot, not use a with loop in report and take pdfs from outside of dataspecs