-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add support for variable scoping #21
Comments
Yes, I definitely want to add support for this! I don't use files like this very often, would you be able to share an example file? You can send it to me privately if you'd prefer by emailing me at christopher.burr with the domain being cern.ch. |
The samples I'm developing against are a bit private atm I'm afraid, but I think the |
Thanks for file (and the $ python -m formulate --from-numexpr 'branch.sub_branch < 4' --variables
branch.sub_branch I don't work with files like this very often so please open issues if you run into more limitations. 😄 |
Same comment made at #22 - example above worth having in the README. Maybe use the file above for a test? |
Thanks for such a speedy implementation, Chris! |
Hi I have a similar problem with with variables that have dot "." inside. See As you can see, this is done with the last version of formulate, i.e v0.08. The variables that bring problem are the isolation variables An additional concern that I have, is how then the numpexpr conversion will be done? |
I've started looking into using this package for a project I'm working on. We'll want to be able to specify branches which might be nested within our trees, eg.
branch.sub_branch
. I've tested this briefly with version 0.0.7 of formulate though and I see that such variables cannot be identified:Would it be possible to add support for this? PyParsing has a specific helper method which might be useful here,
delimitedList
. I think the easiest for the user is to return a single variable in this casebranch.sub_branch
in the example above. That might mean just including the.
in the definition of the Word for Variables?The text was updated successfully, but these errors were encountered: