Skip to content
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

Implementing input checks. #12

Merged
merged 31 commits into from
Oct 21, 2020
Merged

Implementing input checks. #12

merged 31 commits into from
Oct 21, 2020

Conversation

alecandido
Copy link
Member

@alecandido alecandido commented Jan 27, 2020

I will implement the input checks already made in APFEL (just as they are for the moment), hopefully in a more readable fashion.

  • include Inspector call in runner
  • write one or more proper tests
    • errors
    • checkers
  • write the checking script
    • domains
    • cross-constraints
  • complete to store default and restrictions
    • domains (write for all the parameters, at least the one listed in defaults)
    • cross-constraints

UPDATE: defaults are not going to be implemented at all, because we prefer to provide examples and force the user to fully specify the input runcard

@alecandido
Copy link
Member Author

@scarrazza can you link me the place where the input parsing is made in nnpdf, please?

@scarrazza
Copy link
Member

@alecandido alecandido changed the base branch from master to eko-dependency January 31, 2020 09:48
@scarlehoff scarlehoff changed the base branch from eko-dependency to master January 31, 2020 13:06
@scarlehoff scarlehoff changed the base branch from master to eko-dependency January 31, 2020 13:06
@alecandido alecandido changed the base branch from eko-dependency to master February 3, 2020 19:22
@alecandido alecandido mentioned this pull request Mar 27, 2020
2 tasks
This was linked to issues Mar 27, 2020
@alecandido alecandido self-assigned this Apr 24, 2020
@alecandido alecandido added the enhancement New feature or request label Apr 24, 2020
@alecandido
Copy link
Member Author

alecandido commented May 12, 2020

Codecov Report

Merging #12 into develop will increase coverage by 15.65%.
The diff coverage is 58.86%.

Impacted file tree graph

@@             Coverage Diff              @@
##           develop      #12       +/-   ##
============================================
+ Coverage    51.15%   66.81%   +15.65%     
============================================
  Files           39       44        +5     
  Lines         1386     1600      +214     
============================================
+ Hits           709     1069      +360     
+ Misses         677      531      -146     
Flag Coverage Δ
#unittests 66.81% <58.86%> (+15.65%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/yadism/cc/fl_light.py 100.00% <ø> (ø)
src/yadism/cc/weights.py 10.00% <ø> (ø)
src/yadism/input/defaults.py 0.00% <0.00%> (ø)
src/yadism/nc/f2_heavy.py 45.00% <0.00%> (ø)
src/yadism/nc/partonic_channel.py 33.33% <0.00%> (ø)
src/yadism/tmc.py 37.50% <0.00%> (ø)
src/yadism/cc/f2_asy.py 36.58% <8.33%> (-3.42%) ⬇️
src/yadism/cc/f3_asy.py 37.50% <9.09%> (-2.50%) ⬇️
src/yadism/nc/f2_light.py 50.00% <14.28%> (+9.45%) ⬆️
src/yadism/cc/f3_heavy.py 41.17% <20.00%> (-4.98%) ⬇️
... and 34 more

@felixhekhorn felixhekhorn changed the base branch from master to develop July 3, 2020 15:36
@alecandido
Copy link
Member Author

Task linked: CU-8jnv9d Input checks

@alecandido
Copy link
Member Author

alecandido commented Oct 20, 2020

Maybe cross-constraints will be deferred to merge the domains.

Tests still required (probably) before merging. Runner integration also.

@alecandido alecandido merged commit 6976a45 into develop Oct 21, 2020
@alecandido alecandido deleted the check-input branch October 21, 2020 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reorganize Runner Report parameters
2 participants