-
Notifications
You must be signed in to change notification settings - Fork 1
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 variable type handling for mypy #71
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #71 +/- ##
==========================================
+ Coverage 14.71% 18.40% +3.68%
==========================================
Files 14 15 +1
Lines 1026 788 -238
==========================================
- Hits 151 145 -6
+ Misses 875 643 -232
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
A couple small changes here.
junit.xml
Outdated
@@ -0,0 +1,22 @@ | |||
<?xml version="1.0" encoding="utf-8"?><testsuites><testsuite name="pytest" errors="0" failures="1" skipped="0" tests="1" time="4.159" timestamp="2024-05-21T01:12:28.597684" hostname="aretha"><testcase classname="bicytok.test.test_model" name="test_optimize_design" time="2.761"><failure message="TypeError: optimizeDesign() got an unexpected keyword argument 'vals'">def test_optimize_design(): |
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.
Don't think this should have been committed. Delete.
bicytok/MBmodel.py
Outdated
@@ -11,13 +11,13 @@ def getKxStar(): | |||
|
|||
|
|||
def cytBindingModel( | |||
recCount: np.ndarray, recXaffs: np.ndarray, dose: float, vals: np.ndarray | |||
recCount: np.ndarray, recXaffs: np.ndarray, dose: float, vals: 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.
Can't this be an nd.ndarray
if it's just converted to such in the function?
bicytok/MBmodel.py
Outdated
): | ||
"""Runs binding model for a given mutein, valency, dose, and cell type.""" | ||
# Check that values are in correct placement, can invert | ||
Kx = getKxStar() | ||
ligandConc = dose / (vals[0] * 1e9) | ||
|
||
output = polyc(ligandConc, Kx, recCount, [vals], recXaffs)[0] | ||
output = polyc(ligandConc, Kx, recCount, np.array([vals]), recXaffs)[0] |
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.
Can just pass Vals
here without modification.
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.
Resolved
No description provided.