Comments (6)
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.
from formulate.
The samples I'm developing against are a bit private atm I'm afraid, but I think the mc10event.root
file in uproot's testing samples is a good equivalent for what I'm looking at:
https://github.com/scikit-hep/uproot/blob/master/tests/samples/mc10events.root. Would that work for you?
from formulate.
Thanks for file (and the delimitedList
suggestion), I've added basic support now in v0.0.8
. The example you gave now looks like this:
$ 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. 😄
from formulate.
Same comment made at #22 - example above worth having in the README. Maybe use the file above for a test?
from formulate.
Thanks for such a speedy implementation, Chris!
from formulate.
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 header_0.30_cc_asy_PT
where 0.30 stands for the cone radius, this variables is automatically created by a LHCb tupletool.
An additional concern that I have, is how then the numpexpr conversion will be done?
from formulate.
Related Issues (20)
- Add documentation to README
- Add constants
- Test against ROOT and numexpr
- Optimise deep recursion HOT 1
- Add ROOT to travis tests HOT 1
- Add support for comparing Expression objects
- Add support for dividing Expression objects HOT 1
- Add support for TMath::Functions with variable numbers of arguments
- Add support for converting more TMath functions to numexpr equivlents
- Drop all dependencies except pyparsing HOT 1
- Get exact values of constants from ROOT HOT 4
- Evaluate Expression objects directly
- Return numexpr expression for given container HOT 3
- parsing `from_root` can be slow HOT 9
- more flexible to_string conversion to support ternary operators
- BUG: pow operator without whitespace errors HOT 1
- Add pypi password as secret for CD HOT 2
- Release tagging HOT 4
- idea: add sympy conversion HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from formulate.