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

First steps towards Python 3 compatibility #5

Closed krischer closed 8 years ago

krischer commented 8 years ago

Heyhey,

last week I attended a workshop on SW4 and I remembered this tool. The virtual machine only had Python 3 so I made them compatible with Python 3. They should still work fine with Python 2.

Please note that I did not actually run and test anything as I then noticed that I needed some more files (mainly events and stations) to actually run pySW4. But everything can be imported in Python 3 and I'm fairly sure my changes don't break anything in relation to Python 2. But somebody please test before merging this ;-)

Cheers!

Lion

shaharkadmiel commented 8 years ago

Hi @krischer Thanks! I hope the SW4 workshop was good. I'm sure it was. Sadly I couldn't be there. I ran some tests to see that things work and everything seems to work fine.

Are you going to be using SW4?

Cheers,

Shahar

krischer commented 8 years ago

Yea it was pretty good :-)

I'm not using it for any serious application (yet). I would need it to be able to solve the adjoint of the wave equation as well and produce gradients - but they are actually thinking about adding that to SW4. So who knows - maybe in the future?

Cheers and hope to see you around!

Lion