Conversion script of current development with v0.5.0
What is the problem?
- With #366 the parameter
D
in modelAixLib.Fluid.FixedResistances.HydraulicResistance
changed todiameter
(according to the Wiki conventions)
Why do we want to solve it?
- So that errors will be avoided automatically.
How do we want to solve it?
- Change (in development branch) AixLib version from v0.5.0 to 0.5.1
- Create file
AixLib\Resources\Scripts\ConvertAixLib_from_0.5.0_to_0.5.1.mos
with contentconvertModifiers("AixLib.Fluid.FixedResistances.HydraulicResistance", {"D"}, {"diameter=%D%"});
- Add conversion script in
package.mo
:conversion(from(...,version="0.5.0",script="modelica://AixLib/Resources/Scripts/ConvertAixLib_from_0.5.0_to_0.5.1.mos")
A few more questions
- I used the
bug
label. This is meant as a bugfix for development, not for master. I hope this is correctly used. - Is anyone more familiar with conversion scripts? (@AnaConstantin, @mlauster, @marcusfuchs, @pema1?) What if someone directly changes from v0.4.0 to v0.6.0? Will the script then be executed? Or should we use
conversion(from(...version="",script="modelica://AixLib/Resources/Scripts/ConvertAixLib_from_0.5.0_to_0.5.1.mos")
? - The file
AixLib/Resources/Scripts/ConvertAixLib_from_0.1_to_0.2.mos
is two years old and empty. I will delete it with this issue.
Thanks for any input!