From 4f0f25dd2bebaa70aa9180df663a677850a0ad46 Mon Sep 17 00:00:00 2001 From: chrisbrahms Date: Wed, 2 Aug 2023 08:36:10 +0100 Subject: [PATCH] restrict Capillary.gradient to vectors to avoid confusions --- src/Capillary.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Capillary.jl b/src/Capillary.jl index 58563f90..741d0e6f 100644 --- a/src/Capillary.jl +++ b/src/Capillary.jl @@ -313,7 +313,7 @@ end Convenience function to create density and core index profiles for multi-point gradient fills defined by positions `Z` and pressures `P`. """ -function gradient(gas, Z, P) +function gradient(gas, Z::AbstractVector, P::AbstractVector) γ = sellmeier_gas(gas) ex = extrema(P) dspl = densityspline(gas, Pmin=ex[1]==ex[2] ? 0 : ex[1], Pmax=ex[2])