Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fit report errors when Hantush function is used #750

Open
raoulcollenteur opened this issue Apr 24, 2024 · 0 comments
Open

Fit report errors when Hantush function is used #750

raoulcollenteur opened this issue Apr 24, 2024 · 0 comments
Assignees
Labels
bug Indicates an unintended behavior or coding error
Milestone

Comments

@raoulcollenteur
Copy link
Member

Describe the bug

Using the Hantush function ends up in an Error in the fit_report.

To Reproduce

ml = ps.Model(head)
sm = ps.RechargeModel(prec, evap, rfunc=ps.Hantush(), name="rch")
ml.add_stressmodel(sm)
ml.solve(report=True)

gives:

in Hantush.get_tmax(self, p, cutoff)
    870 if cutoff is None:
    871     cutoff = self.cutoff
--> 872 a, b = p[1:]
    873 rho = 2 * np.sqrt(b)
    874 return lambertw(1 / ((1 - cutoff) * k0(rho))).real * a

ValueError: too many values to unpack (expected 2)

Expected behavior

No error.

Python package version
pastas 1.5.0

@raoulcollenteur raoulcollenteur added the bug Indicates an unintended behavior or coding error label Apr 24, 2024
@raoulcollenteur raoulcollenteur added this to the 1.6 milestone Apr 24, 2024
@dbrakenhoff dbrakenhoff self-assigned this May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unintended behavior or coding error
Projects
None yet
Development

No branches or pull requests

2 participants