This is not an issue with fitkit persay but it is something that we will need to deal with.
Consider the following snippet:
import sympy as sp
t = sp.symbols('t')
y = t*ureg('1/s')
Now y has type Quantity as defined by pint. When we substitute values for t into ywe want t to have units of s so as to cancel with the constant of 1 with units of 1/s. However, if we do something like:
y.subs("t", ureg('s'))
we get
t
FitKit should allow users to specify expressions containing units (arising from constants) that will correctly cancel with substitution of parameters or free variables.
This is not an issue with fitkit persay but it is something that we will need to deal with. Consider the following snippet:
Now
y
has typeQuantity
as defined by pint. When we substitute values fort
intoy
we wantt
to have units ofs
so as to cancel with the constant of 1 with units of1/s
. However, if we do something like:we get
FitKit should allow users to specify expressions containing units (arising from constants) that will correctly cancel with substitution of parameters or free variables.