Skip to content

Commit acaf88d

Browse files
Copilotthorek1
andcommitted
Include covariance in derivatives flag logic
Co-authored-by: thorek1 <13523097+thorek1@users.noreply.github.com>
1 parent 43103b1 commit acaf88d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/get_functions.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2725,11 +2725,11 @@ function get_moments(𝓂::ℳ;
27252725
@info "Most of the time is spent calculating derivatives wrt parameters. If they are not needed, add `derivatives = false` as an argument to the function call." maxlog = DEFAULT_MAXLOG
27262726
end
27272727

2728-
if (!variance && !standard_deviation && !non_stochastic_steady_state && !mean)
2728+
if (!variance && !standard_deviation && !non_stochastic_steady_state && !mean && !covariance)
27292729
derivatives = false
27302730
end
27312731

2732-
if parameter_derivatives != :all && (variance || standard_deviation || non_stochastic_steady_state || mean)
2732+
if parameter_derivatives != :all && (variance || standard_deviation || non_stochastic_steady_state || mean || covariance)
27332733
derivatives = true
27342734
end
27352735

0 commit comments

Comments
 (0)