More Unitful support #243
Replies: 2 comments
-
some things i noticed:
or something like that. my idea is that |
Beta Was this translation helpful? Give feedback.
-
That support can be reverted easily at this point, do you want me to open a PR? I think it's also fine to keep it since they are, after all, part of the documented API of Clapeyron. For instance, they might be used by an end-user in order to get a quick-and-dirty estimate for a value, if speed is more important than precision. So I tend to consider as deserving of a unit support as the rest of the documented function. If they should only be used by Clapeyron's developers, should they not be part of the developer documentation instead?
That could be doable. But it will need a bit more rewriting of the function because you can't simply do res = C.$VT_fn(model, _v, _T,_z)*(isnothing(output) ? true : unit) but the main issue is that the unit itself cannot be written in the code: you can't write I could be overlooking a simple solution to this issue though, please let me know if you can think of a type stable alternative! |
Beta Was this translation helpful? Give feedback.
-
@Liozou is ok if we follow this discussion here?
Beta Was this translation helpful? Give feedback.
All reactions