Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10513

[PyROOT exp] Use consistent names for interoperability functions

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: master
    • Fix Version/s: 6.22/00
    • Component/s: PyROOT
    • Labels:
      None
    • Environment:

      all

    • Development:

      Description

      We have currently the issue that we load at the startup time libraires such as TMVA because we inject free functions like TMVA.Experimental.AsRTensor. Same holds true for ROOT.VecOps.AsRVec. Since these loads slow down the startup of PyROOT, we try to get rid of them.

      This comes together with making the names of our utilities for interoperability between python/numpy and ROOT more consistent. ROOT has the functions ROOT.RDataFrame.AsNumpy and the two mentioned above. We propose to move the free functions as members of the corresponding C++ class, for example move ROOT.VecOps.AsRVec to ROOT.VecOps.RVec.FromNumpy. So each conversion from a C++ object to numpy array would be called AsNumpy and the conversion from the numpy world to the C++ world FromNumpy.

        Attachments

          Activity

            People

            • Assignee:
              etejedor Enric Tejedor Saavedra
              Reporter:
              swunsch Stefan Wunsch
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: