geoscixyz / geosci-labs

collection of notebook-apps for concepts in applied geophysics
https://geosci.xyz
MIT License
48 stars 33 forks source link

Replace deprecated methods in discretize for new ones #69

Closed santisoler closed 8 months ago

santisoler commented 8 months ago

Replace the deprecated TensorMesh.getInterpolationMat method for TensorMesh.get_interpolation_matrix. Replace deprecated properties vol and cellGrad for cell_volumes and cell_gradient, respectively.

The usage of the deprecated methods leads to an error when trying to plot the potential, E and J fields.

santisoler commented 8 months ago

@lheagy, this is relevant for the DC/IP lab we are having next week. We should get it merged and update the version in the JupyterHub.

lheagy commented 8 months ago

Thanks @santisoler! I will test it out now. Did you check this against simpeg=0.19.0 ? this is what we are using for the environment on the hub https://github.com/geoscixyz/gpgLabs/blob/main/environment.yml

santisoler commented 8 months ago

Great! I'm merging it. And yes, I tested it with the same environment we are using on the hub.