We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Tryed different types of data on version "0.6.3" and "0.7.0":
# Test #1 project.setTimeParameter(10, "01:00"); //'Cannot convert "01:00" to long', project.setTimeParameter(10, "1 pm"); //'Cannot convert "1 pm" to long' project.setTimeParameter(10, 3600); //'Error 251: function call contains invalid parameter code' project.setTimeParameter(10, 1); // 'Error 251: function call contains invalid parameter code' project.setTimeParameter(10, 0); // 'Error 251: function call contains invalid parameter code'
Output:
{ name: 'StartTime', cod: 10, desc: 'Simulation starting time of day.' } GET: 0 ERROR: Error: Error 251: function call contains invalid parameter code at Project._checkError (/epanet/node_modules/epanet-js/dist/epanet-js.cjs.development.js:1351:11) at Project.AnalysisOptionsFunctions.setTimeParameter (/epanet/node_modules/epanet-js/dist/epanet-js.cjs.development.js:516:10)
References: https://epanetjs.com/api/project-functions/enumerated-types/#timeparameter https://epanetjs.com/api/project-functions/analysis-options/#settimeparameter
The text was updated successfully, but these errors were encountered:
Hi @rfsales ,
Thanks for bringing this to my attention, it turns out that StartTime was added after v2.2 and so isn't actually available from the toolkit.
OpenWaterAnalytics/EPANET#588
I've been looking at ways to allow the dev branch of epanet to run in epanet-js and would like to see that supported sooner than later.
dev
Also, I was considering adding custom "unsafe" API functions to temporarily add support for specific features with the 2.2 engine.
I will leave this issue open until one of the two above options becomes ready
Sorry, something went wrong.
No branches or pull requests
Tryed different types of data on version "0.6.3" and "0.7.0":
Output:
References:
https://epanetjs.com/api/project-functions/enumerated-types/#timeparameter
https://epanetjs.com/api/project-functions/analysis-options/#settimeparameter
The text was updated successfully, but these errors were encountered: