Hi
joined a model using get vdf data that generates an error if one uses an empty file. same is one uses the get vdf constants function.
Regards.
JJ
get vdf data and get vdf constant does not work if the file is empty
get vdf data and get vdf constant does not work if the file is empty
- Attachments
-
- essai.mdl
- (2.05 KiB) Downloaded 166 times
Re: get vdf data and get vdf constant does not work if the file is empty
This is by design, but I agree that it's a stupid limitation. We've been considering a fix. The obvious thing to do is to return :NA: for missing items. Even nicer would be to have an additional version of the function that allowed specifying a default value (like 0) when the file is missing.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Re: get vdf data and get vdf constant does not work if the file is empty
Hi Tom
Every time that a file is missing, one has to erase the folrmula with the get vdf and replace with :NA: or anything else, run the model to get the run and then get the get vdf formula back with the name of the run generated. This is cumbersome. What is the purpose of the actual design? it would be much more practical just to generate the values mentionned in the definition of the formulas.
Regards.
JJ
Every time that a file is missing, one has to erase the folrmula with the get vdf and replace with :NA: or anything else, run the model to get the run and then get the get vdf formula back with the name of the run generated. This is cumbersome. What is the purpose of the actual design? it would be much more practical just to generate the values mentionned in the definition of the formulas.
Regards.
JJ