dodoplus

Results 6 comments of dodoplus

Is there a workaround? I think that designating variables as "protected" from elimination is a good idea.

Up to you... that was a learning project for me (mostly: learning Julia). Feel free to use this code in whatever way you think is best. No copyright.

Proposed solution: ```julia inp(u, x) = x inp(u, x::Quantity) = ustrip(u, x) ... function Capacitor(; name, C, v_start = 0.0u"V") C = inp(u"F", C); v_start = inp(u"V", v_start) @named oneport...

> It sometimes returns `Rational` numbers though, so might need a `convert` etc. `ustrip()` can `convert` the result to a supplied type: ```julia julia> ustrip(u"m", 1u"mm") == 1//1000 true julia>...

@ValentinKaisermayer just curious: why are you modeling changes in density due to pressure but ignore temperature entirely? E.g. for water, 10K change in temperature is more significant than 10MPa change...

A hack implementation with JSON serialization: ```julia using LevelDB using JSON3 abstract type AbstractLDB{K,V,S} end abstract type AbstractSerializer end function serialize end serialize(s, k) = error("not implemented") deserialize(s, k, ::Type)...