Skip to content

Commit a417394

Browse files
committed
Set initial min times to be 0
1 parent 15e0063 commit a417394

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tsdate/prior.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ def _truncate_priors(ts, priors, nodes_to_date=None, progress=False):
10151015
zero_value = 0
10161016
elif priors.probability_space == "logarithmic":
10171017
zero_value = -np.inf
1018-
constrained_min_times = np.copy(tables.nodes.time)
1018+
constrained_min_times = np.zeros_like(tables.nodes.time)
10191019
constrained_min_times[ts.samples()] = tables.nodes.time[ts.samples()]
10201020
constrained_max_times = np.full_like(constrained_min_times, np.inf)
10211021

0 commit comments

Comments
 (0)