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

GWHAT crash when trying to evaluate recharge before the MRC have been evaluated #163

Closed
jnsebgosselin opened this issue Mar 7, 2018 · 0 comments

Comments

@jnsebgosselin
Copy link
Owner

What steps will reproduce the problem?

  1. Try to compute recharge before computing the MRC
  2. GWHAT crash.

Traceback

Traceback (most recent call last):
  File "C:\Users\jsgosselin\GWHAT\gwhat\gwrecharge\gwrecharge_calc2.py", line 22
4, in calcul_GLUE
    SyOpt, RMSE, wlvlest = self.optimize_Sy(Sy0, rechg)
  File "C:\Users\jsgosselin\GWHAT\gwhat\gwrecharge\gwrecharge_calc2.py", line 33
4, in optimize_Sy
    dr = np.linalg.tensorsolve(XtX, Xtdh, axes=None)
  File "C:\Python36\lib\site-packages\numpy\linalg\linalg.py", line 296, in tens
orsolve
    res = wrap(solve(a, b))
  File "C:\Python36\lib\site-packages\numpy\linalg\linalg.py", line 375, in solv
e
    r = gufunc(a, b, signature=signature, extobj=extobj)
  File "C:\Python36\lib\site-packages\numpy\linalg\linalg.py", line 90, in _rais
e_linalgerror_singular
    raise LinAlgError("Singular matrix")
numpy.linalg.linalg.LinAlgError: Singular matrix

Proposed Solution

A warning message should pop-up telling the user that a MRC needs to be evaluated first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant