Skip to content

Commit

Permalink
changing import of PG tools for refrac
Browse files Browse the repository at this point in the history
  • Loading branch information
hadrienmichel committed Feb 6, 2024
1 parent 835232a commit 96cbdaf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Interface.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ except:
## Imports for the data inversion
import pygimli as pg
from pygimli.physics import TravelTimeManager as TTMgr
from pygimli.physics.traveltime import ratools, drawFirstPicks
from pygimli.physics.traveltime import drawFirstPicks
try:
from pygimli.physics.traveltime.ratools import createGradientModel2D
except:
from pygimli.physics.traveltime import createGradientModel2D
from pygimli.viewer import show as pgshow
## Imports for saving/reading states:
import pickle
Expand Down Expand Up @@ -261,7 +265,7 @@ class inversionData():
self.data = None
self.manager = None
def setStartModelGradient(self, data, mesh):
self.startModel = pg.Vector(ratools.createGradientModel2D(data, mesh, self.vTop, self.vBottom))
self.startModel = pg.Vector(createGradientModel2D(data, mesh, self.vTop, self.vBottom))
class modellingAnimation():
def __init__(self) -> None:
self.currPosition = [0, 0]
Expand Down

0 comments on commit 96cbdaf

Please sign in to comment.