MCPcopy Create free account
hub / github.com/SeisSol/SeisSol / __init__

Method __init__

postprocessing/visualization/receiver/src/Waveform.py:43–58  ·  view source on GitHub ↗
(self, names, data, coordinates)

Source from the content-addressed store, hash-verified

41
42class Waveform:
43 def __init__(self, names, data, coordinates):
44 data = numpy.array(data)
45
46 self.waveforms = dict()
47 self.norm = dict()
48 self.show = dict()
49
50 for i in range(0, len(names)):
51 if names[i] == 'Time':
52 self.time = data[:,i]
53 else:
54 self.waveforms[ names[i] ] = data[:,i]
55 self.norm[ names[i] ] = numpy.max(numpy.abs(data[:,i]))
56 self.show[ names[i] ] = True
57
58 self.coordinates = numpy.array(coordinates)
59
60 def subtract(self, other):
61 newTime = numpy.union1d(self.time, other.time)

Callers

nothing calls this directly

Calls 2

rangeFunction · 0.85
maxMethod · 0.45

Tested by

no test coverage detected