tbenthompson / cutde

Python CPU and GPU accelerated TDEs, over 100 million TDEs per second!
MIT License
58 stars 15 forks source link

AttributeError: module 'cutde' has no attribute 'disp_matrix' on cutde-22.3.17 #22

Closed unron0830 closed 1 year ago

unron0830 commented 1 year ago

Hi~ I fellow the 1. Using TDEs to build a fault model with topography example on cutde-22.3.17 https://tbenthompson.com/book/tdes/sa_tdes.html#fullspace-example

when I excute the code ,met some error

disp_mat = cutde.disp_matrix(obs_pts=pts, tris=fault_pts[fault_tris], nu=0.25) AttributeError: module 'cutde' has no attribute 'disp_matrix'

Could you please show how to fix the code? or Are there parameters for cutde to refer?

tbenthompson commented 1 year ago

Ah, that was written with a previous version of the code. You can see the latest documentation here: https://github.com/tbenthompson/cutde

This snippet should work:

import cutde.fullspace
cutde.fullspace.disp_matrix(...)