Skip to content

Commit 017b922

Browse files
committed
Pass stream copy when calling utils.DLcalc
1 parent 8556765 commit 017b922

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

orientpy/classes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -609,13 +609,13 @@ def calc(self, showplot=False):
609609

610610
# R1 path
611611
R1phi[k], R1cc[k] = utils.DLcalc(
612-
stream, item[0], item[1],
612+
stream.copy(), item[0], item[1],
613613
item[2], self.meta.epi_dist, self.meta.baz, Ray1,
614614
winlen=item[3], ptype=0)
615615

616616
# R2 path
617617
R2phi[k], R2cc[k] = utils.DLcalc(
618-
stream, item[0], item[1],
618+
stream.copy(), item[0], item[1],
619619
item[2], dist2, baz2, Ray2,
620620
winlen=item[4], ptype=0)
621621

0 commit comments

Comments
 (0)