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

BUG (See description note) PyDoubleBuffer tolist and numpy array cause segfault.

    Details

    • Type: Task
    • Status: Open (View Workflow)
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 6.12/06
    • Fix Version/s: None
    • Component/s: PyROOT
    • Labels:
      None
    • Environment:

      Python 3.6.4
      MacOS 10.13.2

    • Bug / Feature:
      Bug report
    • Severity:
      3 - Normal
    • Development:

      Description

      (Bug was not available for issue type)

      When using pyroot in python 3 the PyDoubleBuffer tolist method and converting to a numpy array cause a segmentation violation. The shape value is invalid. Discussion here https://root-forum.cern.ch/t/pydoublebuffer-seems-to-have-incorrect-size/28118
      {code:java}
      import numpy as np
      import ROOT

      x = y = np.linspace(0,5,num=5)
      g = ROOT.TGraph(len, x, y)
      print(g.GetX().shape)
      print(g.GetX().tolist())
      {code}

        Attachments

          Activity

            People

            • Assignee:
              etejedor Enric Tejedor Saavedra
              Reporter:
              613f2a276cdeb745102f Karl Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                PlannedEnd:
                PlannedStart: