Giter VIP home page Giter VIP logo

Comments (6)

chrisburr avatar chrisburr commented on July 20, 2024

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.

benkrikler avatar benkrikler commented on July 20, 2024

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.

chrisburr avatar chrisburr commented on July 20, 2024

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.

eduardo-rodrigues avatar eduardo-rodrigues commented on July 20, 2024

Same comment made at #22 - example above worth having in the README. Maybe use the file above for a test?

from formulate.

benkrikler avatar benkrikler commented on July 20, 2024

Thanks for such a speedy implementation, Chris!

from formulate.

marinang avatar marinang commented on July 20, 2024

Hi I have a similar problem with with variables that have dot "." inside. See

capture d ecran 2018-10-17 a 10 56 21

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.