shaharkadmiel / pySW4

Setup, run, post process, and visualize numerical simulations. Primarily SW4
http://shaharkadmiel.github.com/pySW4
GNU General Public License v3.0
28 stars 14 forks source link

Problem with patches #18

Closed Anupam2372 closed 2 years ago

Anupam2372 commented 3 years ago

The bugs arise at the patches, like, for a small section of code-

f = '../sw4-v1.1/examples/rfile/results/berkeley.cycle=00000.x=2500.p.sw4img' image = sw4.readimage(f, input)

print image for patch in image.patches: print patch

print image.curvilinear_grid_patch

image.patches[1].plot() image.patches[0].plot()

shaharkadmiel commented 3 years ago

By the looks of it you are using a very old version of pySW4.

please clone the master branch:

$ git clone git@github.com:shaharkadmiel/pySW4.git

and install locally with pip:

$ cd pySW4
$ pip install .

You might have to first uninstall pySW4. That may differ depending on how you initially installed it.