Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Raise exceptions for known errors #241

Copy link
Copy link
@Sparks29032

Description

@Sparks29032
Issue body actions
  • On squeeze, if the polynomial squeeze causes the function grid to be non-strictly-increasing, an error is thrown. Let's wrap the CubicSpline call in morphsqueeze.py with a try catch to throw a custom warning to the user.
  • If the grids of the morphed and target functions after the first iterations are too far separated (e.g. there is no overlap, or only one point overlap), then it is possible for the number of parameters to be smaller than the number of points we are regressing to fit over. This causes an error. In refine.py in the _residual function, let's throw a custom error to the user if len(rvec) < len(pvals).
sbillinge

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.