Skip to content

Commit 0aac102

Browse files
committed
try to support Julia 1.12
1 parent 2e9fb5a commit 0aac102

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/qobj/quantum_object_evo.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ Parse the `op_func_list` and generate the data for the `QuantumObjectEvolution`
407407
# check if each func accepts 2 arguments
408408
func_methods = tuple($(func_methods_expr...))
409409
for f_method in func_methods
410-
length(f_method.ms) == 0 && throw(
410+
length(f_method.mt) == 0 && throw(
411411
ArgumentError(
412412
"The following function must accept two arguments: `$(f_method.mt.name)(p, t)` with t<:Real",
413413
),

src/time_evolution/brmesolve.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ end
190190

191191
function _check_br_spectra(f::Function)
192192
meths = methods(f, [Real])
193-
length(meths.ms) == 0 &&
193+
length(meths.mt) == 0 &&
194194
throw(ArgumentError("The following function must accept one argument: `$(meths.mt.name)(ω)` with ω<:Real"))
195195
return nothing
196196
end

0 commit comments

Comments
 (0)