@@ -33,17 +33,19 @@ Can be easily constructed with `invert_integral(A::LinearInterpolation{<:Abstrac
3333 - `t` : Given by `A.I` (the cumulative integral of `A`)
3434 - `A` : The `LinearInterpolation` object
3535"""
36- struct LinearInterpolationIntInv{uType, tType, itpType, T} < :
36+ struct LinearInterpolationIntInv{uType, tType, itpType, T, propsType } < :
3737 AbstractIntegralInverseInterpolation{T}
3838 u:: uType
3939 t:: tType
4040 extrapolation_left:: ExtrapolationType.T
4141 extrapolation_right:: ExtrapolationType.T
4242 iguesser:: Guesser{tType}
43+ t_props:: propsType
4344 itp:: itpType
4445 function LinearInterpolationIntInv (u, t, A, extrapolation_left, extrapolation_right)
45- return new {typeof(u), typeof(t), typeof(A), eltype(u)} (
46- u, t, extrapolation_left, extrapolation_right, Guesser (t), A
46+ t_props = FindFirstFunctions. SearchProperties (t)
47+ return new {typeof(u), typeof(t), typeof(A), eltype(u), typeof(t_props)} (
48+ u, t, extrapolation_left, extrapolation_right, Guesser (t), t_props, A
4749 )
4850 end
4951end
@@ -93,19 +95,21 @@ Can be easily constructed with `invert_integral(A::ConstantInterpolation{<:Abstr
9395 - `t` : Given by `A.I` (the cumulative integral of `A`)
9496 - `A` : The `ConstantInterpolation` object
9597"""
96- struct ConstantInterpolationIntInv{uType, tType, itpType, T} < :
98+ struct ConstantInterpolationIntInv{uType, tType, itpType, T, propsType } < :
9799 AbstractIntegralInverseInterpolation{T}
98100 u:: uType
99101 t:: tType
100102 extrapolation_left:: ExtrapolationType.T
101103 extrapolation_right:: ExtrapolationType.T
102104 iguesser:: Guesser{tType}
105+ t_props:: propsType
103106 itp:: itpType
104107 function ConstantInterpolationIntInv (
105108 u, t, A, extrapolation_left, extrapolation_right
106109 )
107- return new {typeof(u), typeof(t), typeof(A), eltype(u)} (
108- u, t, extrapolation_left, extrapolation_right, Guesser (t), A
110+ t_props = FindFirstFunctions. SearchProperties (t)
111+ return new {typeof(u), typeof(t), typeof(A), eltype(u), typeof(t_props)} (
112+ u, t, extrapolation_left, extrapolation_right, Guesser (t), t_props, A
109113 )
110114 end
111115end
0 commit comments