forked from pydata/xarray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement multidimensional initial guess and bounds for
curvefit
(p…
…ydata#7821) * Add test for multidimensional initial guess to curvefit * Pass initial guess with *args * Update curvefit docstrings * Add examples to curvefit * Add test for error on invalid p0 coords * Raise exception on invalid coordinates in initial guess * Add link from polyfit to curvefit * Update doc so it matches CI * Formatting * Add basic test for multidimensional bounds * Add tests for curvefit_helpers with array-valued bounds * First attempt at fixing initialize_curvefit_params, issues warnings * Alternative implementation of bounds initialization using xr.where(), avoids warnings * Pass also bounds as *args to _wrapper * Raise exception on unexpected dimensions in bounds * Update docstring of bounds * Update bounds docstring in dataarray also * Update type hints for curvefit p0 and bounds * Change list to tuple to pass mypy * Update whats-new * Use tuples in error message Co-authored-by: Illviljan <[email protected]> * Add type hints to test Co-authored-by: Illviljan <[email protected]> --------- Co-authored-by: Illviljan <[email protected]>
- Loading branch information
Showing
4 changed files
with
298 additions
and
37 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
Oops, something went wrong.