Browse Source

py3

python3
Marius Kriegerowski 3 years ago
parent
commit
976c120beb
3 changed files with 4 additions and 5 deletions
  1. +0
    -1
      ahfullgreen.py
  2. +3
    -3
      beam_stack.py
  3. +1
    -1
      local_magnitude.py

+ 0
- 1
ahfullgreen.py View File

@ -2,7 +2,6 @@ import numpy as num
import math
import os
from PyQt5.QtCore import *
from pyrocko import moment_tensor, model, trace
from pyrocko.gui.snuffling import Snuffling, Param, Choice, Switch, EventMarker
from pyrocko import gf


+ 3
- 3
beam_stack.py View File

@ -9,7 +9,7 @@ from matplotlib.colorbar import ColorbarBase
from matplotlib.colors import Normalize
from collections import defaultdict
from matplotlib import cm
from PyQt4.QtCore import SIGNAL
r_earth = 6371000.785
torad = num.pi/180.
@ -87,8 +87,8 @@ class BeamForming(Snuffling):
def panel_visibility_changed(self, bool):
if bool:
viewer = self.get_viewer()
viewer.connect(self._param_controls['unit'], SIGNAL('choosen(PyQt_PyObject,PyQt_PyObject)'),
self.set_slowness_ranges)
self._param_controls['unit'].choosen.connect(
self.set_slowness_ranges)
def set_slowness_ranges(self, ident, state):
if state == 's/km':


+ 1
- 1
local_magnitude.py View File

@ -7,7 +7,7 @@ from collections import defaultdict
from pyrocko.gui.snuffling import Snuffling, Param, PhaseMarker, Switch, Choice, \
EventMarker
from pyrocko import guts, orthodrome, trace
from pyrocko.gui.gui_util import to01
from pyrocko.gui.util import to01
from pyrocko.plot import graph_colors
__author__ = 'Catarina Matos (cpfcmatos@gmail.com)'


Loading…
Cancel
Save