Skip to content

Commit 41cbc7b

Browse files
committed
Bug in DRA (pyETM)
1 parent bd2dac5 commit 41cbc7b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pgamit/pyETM.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2837,7 +2837,6 @@ def get_xyz_s(self, year, doy, jmp=None, sigma_h=SIGMA_FLOOR_H, sigma_v=SIGMA_FL
28372837

28382838
for i in range(3):
28392839
neu[i] = np.dot(self.As[idt, :], self.C[i])
2840-
28412840
xyz = self.rotate_2xyz(neu) + ref_pos
28422841
# Use the deviation from the ETM multiplied by 2.5 to estimate the error
28432842
sig = 2.5 * self.R[:, index]
@@ -3370,9 +3369,9 @@ def __init__(self, cnn, NetworkCode, StationCode, plotit=False,
33703369
self.soln.type = 'dra'
33713370
# replace auto_[xyz] with zeros so that in ETM.__init__ the self.l vector is realized properly
33723371
# DRA requires coordinates differences, not coordinates relative to reference
3373-
self.soln.auto_x = 0
3374-
self.soln.auto_y = 0
3375-
self.soln.auto_z = 0
3372+
self.soln.auto_x = [0]
3373+
self.soln.auto_y = [0]
3374+
self.soln.auto_z = [0]
33763375

33773376
ETM.__init__(self, cnn, self.soln, no_model, FitEarthquakes=False, FitGenericJumps=False,
33783377
FitPeriodic=False, plotit=plotit)

0 commit comments

Comments
 (0)