-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix cube fitting compatibility with unit conversion (#3190)
* Fix NaN handling in cube fitting and initial fixes for unit conversion/model fitting interaction * Remove debugging prints, add comment for context * Codestyle, changelog * Reestimate parameters when cube fitting is toggled * Only reestimate if spectral y type isn't SB * Codestyle * Changelog * Fix initializing linear component for cube fit * Handle linear component estimation for cube case * Only reshape here in 3D case * Skip tests that need #3156 * Respect selected display units when initializing model components * Use app._get_display_unit instead of relying on Unit Conversion * Add equivalency here * Only reestimate here if sb unit != spectral_y unit * Don't automatically reestimate when toggling cube fit, make the user do it * Remove print * Check for warning in test after cube toggle Fix test Codestyle * Add test for cube fitting after flux unit change * Add a to-do about a test for unit conversion with equivalency * Fix failing test * Back to parallel processing post-debugging
- Loading branch information
Showing
5 changed files
with
138 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters