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

Update numpy.mat() -> numpy.asmatrix() #14

Open
brown170 opened this issue Sep 18, 2024 · 0 comments
Open

Update numpy.mat() -> numpy.asmatrix() #14

brown170 opened this issue Sep 18, 2024 · 0 comments

Comments

@brown170
Copy link
Contributor

Here is a traceback showing the issue:

Traceback (most recent call last):
  File "/Users/dbrown/Desktop/fudge/brownies/bin/plot_evaluation.py", line 513, in <module>
    raise err
  File "/Users/dbrown/Desktop/fudge/brownies/bin/plot_evaluation.py", line 449, in <module>
    makeCrossSectionPlot(
  File "/Users/dbrown/Desktop/junk/venv/lib/python3.12/site-packages/brownies/BNL/plot_evaluation/__init__.py", line 612, in makeCrossSectionPlot
    rawEndfUnc.append(covariance.getUncertaintyVector(relative=False))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/dbrown/Desktop/junk/venv/lib/python3.12/site-packages/fudge/covariances/mixed.py", line 164, in getUncertaintyVector
    return self.toCovarianceMatrix().getUncertaintyVector(theData=theData,relative=relative)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/dbrown/Desktop/junk/venv/lib/python3.12/site-packages/fudge/covariances/mixed.py", line 224, in toCovarianceMatrix
    commonMatrix = numpy.mat( firstCovMtx.group( ( commonRowAxis.values.values, commonColAxis.values.values ),
                   ^^^^^^^^^
  File "/opt/homebrew/lib/python3.12/site-packages/numpy/__init__.py", line 400, in __getattr__
    raise AttributeError(
AttributeError: `np.mat` was removed in the NumPy 2.0 release. Use `np.asmatrix` instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant