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

Fix evaluation of new offset terms with call arguments #81

Merged
merged 2 commits into from
Oct 16, 2022

Conversation

tomicapretto
Copy link
Collaborator

See bambinos/bambi#571 in Bambi. The creation of new design matrices would fail when an offset term contained a function call as an argument as in offset(np.log(x)).

Now it's fixed.

@codecov
Copy link

codecov bot commented Oct 16, 2022

Codecov Report

Merging #81 (3fa215a) into master (b926883) will increase coverage by 0.08%.
The diff coverage is 91.66%.

@@            Coverage Diff             @@
##           master      #81      +/-   ##
==========================================
+ Coverage   95.45%   95.54%   +0.08%     
==========================================
  Files          31       30       -1     
  Lines        3546     3543       -3     
==========================================
  Hits         3385     3385              
+ Misses        161      158       -3     
Impacted Files Coverage Δ
formulae/terms/call.py 99.39% <66.66%> (-0.61%) ⬇️
formulae/tests/test_design_matrices.py 98.64% <100.00%> (+0.01%) ⬆️
formulae/__init__.py

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@tomicapretto tomicapretto merged commit d7eae85 into bambinos:master Oct 16, 2022
@tomicapretto tomicapretto deleted the fix_offset_with_call branch October 16, 2022 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant