Skip to content

Commit

Permalink
try fix zygote
Browse files Browse the repository at this point in the history
  • Loading branch information
thorek1 committed Jan 7, 2024
1 parent 3d538c2 commit d845aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/get_functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2900,7 +2900,7 @@ function get_loglikelihood(𝓂::ℳ,

observables = @ignore_derivatives collect(axiskeys(data,1))

@assert typeof(observables) <: Union{Vector{String},Vector{Symbol}} "Make sure that the data has variables names as rows. They can be either Strings or Symbols."
@assert observables isa Vector{String} || observables isa Vector{Symbol} "Make sure that the data has variables names as rows. They can be either Strings or Symbols."

observables_symbols = @ignore_derivatives observables isa String_input ? observables .|> Meta.parse .|> replace_indices : observables

Expand Down

0 comments on commit d845aa9

Please sign in to comment.