Skip to content
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

JSON export fails when there are formula errors #146

Open
msrocka opened this issue Oct 14, 2021 · 1 comment
Open

JSON export fails when there are formula errors #146

msrocka opened this issue Oct 14, 2021 · 1 comment
Labels

Comments

@msrocka
Copy link
Member

msrocka commented Oct 14, 2021

The JSON export correctly checks for used global parameters in the formulas in order to export them as dependencies. But when there are errors in the formulas it breaks the full export. This should not happen or at least display an error that the users can understand.

@msrocka msrocka added the bug label Oct 14, 2021
@msrocka msrocka added this to the v2.0 milestone Jul 29, 2022
@msrocka
Copy link
Member Author

msrocka commented May 17, 2023

still an issue; here is an example to test it

mass = db.get(FlowProperty, "93a60a56-a3c8-11da-a746-0800200b9a66")

param = Parameter.global("param", 42)
p = Flow.product("p", mass)
e = Flow.elementary("e", mass)
db.insert(param, p, e)

P = Process.of(P, p)
P.output(e, 0).amountFormula = "param * fails"
db.insert(P)

App.runInUI("go!", lambda: Navigator.refresh())

@msrocka msrocka removed this from the v2.0 milestone May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant