Skip to content

wxGUI/gmodeler: Correct variable replacement in model_convert.py#7241

Open
gureckyfrantisek wants to merge 1 commit intoOSGeo:mainfrom
gureckyfrantisek:issue-7212
Open

wxGUI/gmodeler: Correct variable replacement in model_convert.py#7241
gureckyfrantisek wants to merge 1 commit intoOSGeo:mainfrom
gureckyfrantisek:issue-7212

Conversation

@gureckyfrantisek
Copy link
Copy Markdown

I found the issue which caused the previous variable in the same string not get recognized.

The issue was that when another match was found, the old value got replaced instead of the updated one called "parametrizedValue".

Also made the curly braces around variable names optional, they get recognized correctly but leaving them mandatory should be readable, that is up for debate.

I tested this with r.in.pdal and a *.laz file and the import worked as expected with both the values replaced with options.

This will resolve #7212.

@github-actions github-actions bot added GUI wxGUI related Python Related code is in Python labels Mar 30, 2026
@gureckyfrantisek gureckyfrantisek changed the title fix: Correct variable replacement wxGUI/gmodeler: Correct variable replacement in model_convert.py Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GUI wxGUI related Python Related code is in Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Graphical Modeler: multiple variables used in single option are not substituted properly

1 participant