nvdv / vprof

Visual profiler for Python
BSD 2-Clause "Simplified" License
3.95k stars 154 forks source link

ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() #102

Closed Nebraw closed 4 years ago

Nebraw commented 4 years ago
Description

I got the error message (check the title) when i use the function run of runner

runner.run(foo,"cmhp")

How to reproduce

import etc def foo() print("toto") res = np.ones(50) return res

def main(): runner.run(foo, "cmhp") main()

Version and platform

I'm on Ubuntu 3.18 stable my python python3.7

Have a nice day.