Skip to content

Commit 15bc4e8

Browse files
committed
Set initial min times to be 0
1 parent 4386b44 commit 15bc4e8

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
@@ -1010,7 +1010,7 @@ def _truncate_priors(ts, priors, nodes_to_date=None, progress=False):
10101010
zero_value = 0
10111011
elif priors.probability_space == "logarithmic":
10121012
zero_value = -np.inf
1013-
constrained_min_times = np.copy(tables.nodes.time)
1013+
constrained_min_times = np.zeros_like(tables.nodes.time)
10141014
constrained_min_times[ts.samples()] = tables.nodes.time[ts.samples()]
10151015
constrained_max_times = np.full_like(constrained_min_times, np.inf)
10161016

0 commit comments

Comments
 (0)