Skip to content

Commit

Permalink
Fix accidental tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
edeno committed Jun 7, 2024
1 parent 49c4ef2 commit 5f27872
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions src/non_local_detector/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,10 @@ def most_likely_sequence(
raise NotImplementedError("Chunked Viterbi is not yet implemented.")

if log_likelihoods is None:
log_likelihoods = (
log_likelihood_func(
time,
*log_likelihood_args,
is_missing=is_missing,
),
log_likelihoods = log_likelihood_func(
time,
*log_likelihood_args,
is_missing=is_missing,
)
return viterbi(
initial_distribution=initial_distribution,
Expand Down Expand Up @@ -725,12 +723,10 @@ def most_likely_sequence_covariate_dependent(
raise NotImplementedError("Chunked Viterbi is not yet implemented.")

if log_likelihoods is None:
log_likelihoods = (
log_likelihood_func(
time,
*log_likelihood_args,
is_missing=is_missing,
),
log_likelihoods = log_likelihood_func(
time,
*log_likelihood_args,
is_missing=is_missing,
)
return viterbi_covariate_dependent(
initial_distribution=initial_distribution,
Expand Down

0 comments on commit 5f27872

Please sign in to comment.