home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1057116313

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/6317#issuecomment-1057116313 https://api.github.com/repos/pydata/xarray/issues/6317 1057116313 IC_kwDOAMm_X84_AlCZ 39069044 2022-03-02T16:24:37Z 2022-03-02T16:24:37Z CONTRIBUTOR

These errors can often be eliminated by passing appropriate initial guesses for each parameter through the p0 argument (which it looks like you're already doing), and/or by passing additional kwargs through to scipy.optimize.leastsq(), like ftol and maxfev which set the fit tolerance and max number of iterations.

Even so, there will be cases where some of your data just doesn't fit the desired function and you want to move on and return a result anyway. Your proposal seems fine as long as errors are raised by default and the documentation adequately describes the behavior when set to True.

{
    "total_count": 5,
    "+1": 5,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  1157140667
Powered by Datasette · Queries took 0.567ms · About: xarray-datasette