-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not implemented function 'delay' #433
Comments
Thank you for opening the PR! You mean the delay function from XMILE or any other kind of delay? It seems that the workflow of that function is the same as Vensin's DelayFixed. If that is so, it will be very easy to modify the translation process to make it work. However, I would ask you if you can provide an XMILE test model with some examples of that function and the output that produces, to check that everything works as should in PySD. I cannot do it because I currently don't have Stella or Vensim working. You can replicate this model with Stella https://github.com/SDXorg/test-models/tree/master/tests/delay_fixed |
Hi @enekomartinmartinez , Yes, I meant the DELAY function of XMILE... Equations: The exemple you asked for: Thank you :) |
Thank you @CarineAVieira Could you also please provide the output that this model produces, a .csv o .tab file would work Here is explained how to do it to make it comparable with our test-suite https://github.com/SDXorg/test-models#result-formatting |
Hi @CarineAVieira it is already solved in version 3.13.2. It should be already available in PyPI and in some hours in conda-forge. Note that some of the functions implemented in XMILE are not tested as we miss XMILE users currently, it would be nice if you could provide sample test for any of them. |
Hi @enekomartinmartinez, thank you very much! I can provide some samples of some functions that are not tested. |
If you prefer, you can open a pull request in the test-models repo. You can look at some examples inside the For example, this model is only in Vensim and includes some functions that are not tested with XMILE (STEP, DELAYN), in this case, reproducing the same model with Stella will be enough as we would expect the same outputs It can be done similarly for some other models. In some cases, creating a new folder with the new model and outputs may be necessary as it may not be there. Note that some parameters could change their order in Stella compared to Vensim, but generally, the functions have the same name. If you prefer to simply send me the model with the output as done with the previous one, this will also be useful. However, I would prefer to reuse existing models. Any help will be very useful as the XMILE translator is not fully tested, which could lead to bugs. |
The function delay is not implemented on pysd...
Is there a way to come around this problem?
The text was updated successfully, but these errors were encountered: