-
Notifications
You must be signed in to change notification settings - Fork 3
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
Type hint fix #46
Type hint fix #46
Conversation
… to reflect outputs. added summaries method to calibrate results.
…temp fix to test GM
…tion params for GMcategory
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.
I think the methodology looks good, I've mainly made comments around cleaning up the code and adding documentation.
Some more general things that need updating are:
- Running isort (specifically on multi_area)
- Fixing pylint issues, many of these are covered by comments for tidying up.
- A bunch of tests are failing due to removing the params argument from
MultiAreaGravityModelCalibrator
these can just be updated to reflect the API change - One test is failing due to init params outside the new boundaries for tanner, the init parameter for the test is 4.7... and -1.6..., potentially just bringing those init params within the limits will solve the issue with the test (tests\gravity_model\data\small_and_simple\tanner\calibrate\init_params.json)
There's one additional comment on the code which I couldn't make because you haven't edited that line.
Line 726 in multi_area.py: multi_area.gravity_model
function has the wrong type annotation for cost_distributions
should be MultiCostDistribution
not list[MultiCostDistribution]
Co-authored-by: Matt Buckley <[email protected]>
Co-authored-by: Matt Buckley <[email protected]>
Co-authored-by: Matt Buckley <[email protected]>
Co-authored-by: Matt Buckley <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #46 +/- ##
==========================================
- Coverage 86.31% 85.29% -1.03%
==========================================
Files 11 11
Lines 994 1047 +53
==========================================
+ Hits 858 893 +35
- Misses 136 154 +18 ☔ 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.
Couple of previous comments haven't been addressed and one new one about a TODO that I think has been completed
Describe Changes
updated multi tld API
Task Checklist
requirements.txt
orrequirements_dev.txt
.setup.cfg