Skip to content

Commit 072a62b

Browse files
committed
convert some @errors to @Warns
1 parent eb171d8 commit 072a62b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/base/sensitivity_analysis.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ function get_sensitivity_functions(
251251
end
252252
p_new = copy(p_new_buff)
253253
#Converting perturbations to callbacks, restore after : https://github.com/EnzymeAD/Enzyme.jl/issues/1650
254-
@error "Zygote assumes single perturbation"
254+
@warn "Zygote assumes single perturbation"
255255
cb = Vector{SciMLBase.DiscreteCallback}(undef, 1)
256256
pert = perts[1]
257257
condition = (x, t, integrator) -> t in [pert.time]
@@ -264,7 +264,7 @@ function get_sensitivity_functions(
264264
@error "POWERFLOW AND DEVICES -- not yet supported"
265265
#_initialize_powerflow_and_devices!(x0, inputs, sys)
266266
elseif init_level == DEVICES_ONLY
267-
@error "Reinitializing of most devices not supported with Zygote"
267+
@warn "Reinitializing of most devices not supported with Zygote"
268268
x0, p_new = _non_mutating_initialization_of_ml_surrogates(x0, p_new, sim_inputs)
269269
elseif init_level == INITIALIZED
270270
@info "I.C.s not impacted by parameter change"

0 commit comments

Comments
 (0)