Skip to content

Commit bd9ef93

Browse files
committed
update
1 parent 160020a commit bd9ef93

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

docs/source/Changelog.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ The versioning scheme is: major.minor.revision
1010
:revision: Will be increased for backwards-compatible bug fixes and very minor added functionality. Will not always be documented in this changelog.
1111

1212

13+
Version 1.0.23 (12 March 2019)
14+
------------------------------------
15+
16+
:Fixed: A bug in the post-detection statistics which caused a delay in large dataset (e.g., Kepler K1)
17+
18+
1319
Version 1.0.21 (14 February 2019)
1420
------------------------------------
1521

transitleastsquares/stats.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,11 @@ def snr_stats(
426426
intransit = transit_mask(t, period, 2 * duration, T0)
427427
flux_ootr = y[~intransit]
428428

429+
try:
430+
pinknoise = pink_noise(flux_ootr, int(numpy.mean(per_transit_count)))
431+
except:
432+
pinknoise = numpy.nan
433+
429434
# Estimate SNR and pink SNR
430435
# Second run because now the out of transit points are known
431436
if len(flux_ootr) > 0:
@@ -448,7 +453,6 @@ def snr_stats(
448453

449454
intransit_points = numpy.size(y[idx_intransit])
450455
try:
451-
pinknoise = pink_noise(flux_ootr, int(numpy.mean(per_transit_count)))
452456
snr_pink_per_transit[i] = (1 - mean_flux) / pinknoise
453457
if intransit_points > 0 and not numpy.isnan(std):
454458
std_binned = std / intransit_points ** 0.5

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.22"
2-
TLS_DATE = "15 February 2019"
1+
TLS_VERSIONING = "1.0.23"
2+
TLS_DATE = "12 March 2019"

0 commit comments

Comments
 (0)