New modeling tests and minor bug fixes#12232
Conversation
2631b18 to
a854f9c
Compare
|
Tagging @nden and @perrygreenfield for review. |
a854f9c to
dfd74be
Compare
|
I think once the |
7543b4b to
d2aea8a
Compare
perrygreenfield
left a comment
There was a problem hiding this comment.
Generally minor comments.
08fc933 to
6591eb8
Compare
| @@ -0,0 +1 @@ | |||
| Minor bugfixes and improvements to modeling. | |||
There was a problem hiding this comment.
Bug-fixes generally merit more specifics.
There was a problem hiding this comment.
Updated the changelog to be more specific. See the conversation below for more details.
6591eb8 to
27ce579
Compare
| @@ -0,0 +1,21 @@ | |||
| Minor bugfixes and improvements to modeling including the following: | |||
There was a problem hiding this comment.
There was a problem hiding this comment.
p.s. In the future, if possible, please refrain from opening a giant PR with 2000 lines changed. Given the different entries in this change log, I assume some of them could have been independent smaller PRs?
There was a problem hiding this comment.
All of these changes were just the natural consequences of my goal to increase the general code coverage of modeling. The vast majority of the lines changed are just more unit tests for modeling. This PR is the result of my "spare moments" review/maintenance of modeling of the past couple of months. If anything was particularly serious I would have submitted a PR with the fixes when I found it.
The changes in the PR to the modeling code are fixes to minor bugs uncovered when extending code coverage, or the discovery of reachable code while trying to extend code coverage. I suspect that the majority of the bugs were in code that no one is currently using as they would have created obvious errors if someone actually exercised them.
27ce579 to
34f1258
Compare
b1624e3 to
31a1702
Compare
Updates to better test functional_models Increased coverage of mappings added more coverage to parameters Fixed broken test Increased parameters test coverage Added tests to fully cover physical_models Added tests to powerlaws. Added tests to cover rotations Added more tabular tests Added more coverage in a bunch of small places Added tests and fixes for projections Added tests for polynomial Added optimizer tests Fixed broken test under python 3.8 Fixed testing of abstract methods Added changelog Made use of `_validate_domain_window` in polynomial more consitent and fixed domain/window bug. Removed print from tests Fixed prior/posterior bug in Parameter __init__ and copy
31a1702 to
b407566
Compare
Description
Blocked by:
This pull request adds and extends tests so that some parts of modeling which were not covered by unit tests are now covered by unit tests. Additionally, during this process several minor bugs were discovered and corrected; moreover, in a few places I discovered and removed code which would be impossible to actually execute. All of the changes to the unit testing serve to increase the test coverage of modeling with a focus on ensuring that all of the provided models are better covered by unit tests.
Checklist for package maintainer(s)
This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.
Extra CIlabel.no-changelog-entry-neededlabel. If this is a manual backport, use theskip-changelog-checkslabel unless special changelog handling is necessary.astropy-botcheck might be missing; do not let the green checkmark fool you.backport-X.Y.xlabel(s) before merge.