cumc / dsc

Repo for Dynamic Statistical Comparisons project
https://stephenslab.github.io/dsc-wiki
MIT License
1 stars 0 forks source link

Handle parameter name conflict with Python keywords #7

Open gaow opened 4 years ago

gaow commented 4 years ago

For example, a module parameter lambda is going to trigger an error message because it conflicts wiht Python s labmda function.

We can definitely ban people from using parameters that conflicts with Python. But for R users, the lambda keyword is very innocent so disallowing users to use parameters like this seems a bit limiting.

We may do something on the parser's end to remove this restriction? For example instead of putting:

lambda = 1

in DSC generated script, we always wrap it to a dictionary, eg

DSC_DATA['lambda'] = 1
gaow commented 4 years ago

@lmxy0212 here is one parser & syntax issue. I'll post more here. It would be helpful if you watch this repository (button on top right corner of the github repo page) so you get email notifications.