Skip to content

Commit bbbec42

Browse files
committed
update
1 parent 4c7de1d commit bbbec42

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

transitleastsquares/helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def running_mean_equal_length(data, width_signal):
9393
def running_median(data, kernel):
9494
"""Returns sliding median of width 'kernel' and same length as data """
9595
idx = numpy.arange(kernel) + numpy.arange(len(data) - kernel + 1)[:, None]
96+
idx = idx.astype(numpy.int) # needed if oversampling_factor is not int
9697
med = numpy.median(data[idx], axis=1)
9798

9899
# Append the first/last value at the beginning/end to match the length of

transitleastsquares/version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
TLS_VERSIONING = "1.0.25"
2-
TLS_DATE = "04 June 2020"
1+
TLS_VERSIONING = "1.0.26"
2+
TLS_DATE = "20 March 2021"

0 commit comments

Comments
 (0)