With NumPy >= 2.0, some files raise the following error:
AttributeError: np.mat was removed in the NumPy 2.0 release. Use np.asmatrix instead.
For example, in MJ_solar_cell_tutorial. This should be fixed by replacing np.mat with np.asmatrix in all affected files.
With NumPy >= 2.0, some files raise the following error:
AttributeError:
np.matwas removed in the NumPy 2.0 release. Usenp.asmatrixinstead.For example, in MJ_solar_cell_tutorial. This should be fixed by replacing np.mat with np.asmatrix in all affected files.