Skip to content

Commit 869b1c9

Browse files
committed
Fix constructor for ParametrizedAmplitude
1 parent 1f575a2 commit 869b1c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pulse_parametrizations.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ function ParametrizedAmplitude(
239239
end
240240
else
241241
if (control isa Vector{Float64}) && (shape isa Vector{Float64})
242-
return ShapedParametrizedPulseAmplitude(control, shape)
242+
return ShapedParametrizedPulseAmplitude(control, shape, parametrization)
243243
else
244244
try
245245
ϵ_t = control(0.0)
@@ -255,7 +255,7 @@ function ParametrizedAmplitude(
255255
"A ParametrizedAmplitude shape must either be a vector of values or a callable"
256256
)
257257
end
258-
return ShapedParametrizedContinuousAmplitude(control, shape)
258+
return ShapedParametrizedContinuousAmplitude(control, shape, parametrization)
259259
end
260260
end
261261
end

0 commit comments

Comments
 (0)