Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update model signatures with default parameter values #41

Merged
merged 4 commits into from
Oct 15, 2021

Conversation

ConorMacBride
Copy link
Owner

This PR uses the new mcalf.utils.collections classes and adds functions for setting the signature of model __init__ methods. This update does not change the code, however it now allows for tab completion of parameter names when initialising model classes. It also allows for the default values of the parameters to be automatically documented based on the default value in the code. (Previously the default value had to be specified twice.)

Signed-off-by: Conor MacBride <conor@macbride.me>
Signed-off-by: Conor MacBride <conor@macbride.me>
Signed-off-by: Conor MacBride <conor@macbride.me>
Signed-off-by: Conor MacBride <conor@macbride.me>
@codecov
Copy link

codecov bot commented Oct 15, 2021

Codecov Report

Merging #41 (c2ab395) into main (b84168b) will increase coverage by 0.12%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #41      +/-   ##
==========================================
+ Coverage   94.92%   95.05%   +0.12%     
==========================================
  Files          18       18              
  Lines        1341     1376      +35     
==========================================
+ Hits         1273     1308      +35     
  Misses         68       68              
Impacted Files Coverage Δ
src/mcalf/models/base.py 84.87% <100.00%> (+0.09%) ⬆️
src/mcalf/models/ibis.py 91.97% <100.00%> (+0.20%) ⬆️
src/mcalf/utils/misc.py 99.22% <100.00%> (+0.22%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b84168b...c2ab395. Read the comment docs.

@ConorMacBride ConorMacBride merged commit e79539c into main Oct 15, 2021
@ConorMacBride ConorMacBride deleted the model-parameters branch November 26, 2021 10:54
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant