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

[PyROOT] numpy vs RVec<bool> comparison results in infinite loop

    XMLWordPrintable

    Details

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

      master on commit 4f99c51cb29513bada3b6c48bba38d712b0f5044

    • Development:

      Description

      Following snipplet hangs forever. I don't know yet why:

      import ROOT
      import numpy as np
       
      v = [True, False]
      x1 = np.array(v, dtype=np.bool)
      x2 = ROOT.RVec('bool')(v)
       
      print('Hang forever here ...')
      print(x1 == x2)
      print('... and never reach this.')
      

      It does not fail with ROOT.std.vector('bool'), so it's something with RVec that confuses the machinery. Also, other types than bool seem to be fine.

        Attachments

          Issue Links

            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: