Skip to content

Add optional Lua scripting support behind a build flag - #932

Open
lbutler wants to merge 42 commits into
OpenWaterAnalytics:devfrom
epanet-js:lua
Open

Add optional Lua scripting support behind a build flag#932
lbutler wants to merge 42 commits into
OpenWaterAnalytics:devfrom
epanet-js:lua

Conversation

@lbutler

@lbutler lbutler commented Aug 14, 2026

Copy link
Copy Markdown
Member

This PR adds initial support for Lua scripting in EPANET, as proposed in #931 . A network can carry a [SCRIPT] section holding Lua code that reads and modifies the model during the hydraulic simulation.

All changes are gated behind the LUA_SCRIPTING build flag, which is disabled by default. With the flag off, the Lua code is stripped entirely, including from enumerations and data structures, so default builds are unaffected.

See #931 for the full proposal, API documentation, and example scripts.

cegonse added 30 commits August 5, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants