worlddynamics / Vensim2MTK.jl

A Julia package to import Vensim .xmile files as ModelingToolkit.jl models.
MIT License
2 stars 1 forks source link

README tutorial #34

Closed rogersamso closed 12 months ago

rogersamso commented 12 months ago

Hi,

The mini tutorial you provide in the README does not work. Your example reads:

using Vensim

filepath= "path/to/a/vensim/model/model.xmile"
filename= "MTKmodel.jl"
overwrite = false
Vensim2MTK(filepath, filename, overwrite) 

And it should read:

using Vensim2MTK

filepath= "path/to/a/vensim/model/model.xmile"
filename= "MTKmodel.jl"
overwrite = false
vensim2MTK(filepath, filename, overwrite) 
natema commented 12 months ago

Thanks for flagging that up!

rogersamso commented 12 months ago

Hi,

Note the lowercase in the vensim2MTK function (last line of the example)

natema commented 12 months ago

Ups..!

natema commented 12 months ago

Fixed by #36