Getting Value error while executing _generalized_psi function #459
-
Hi, ----> 8 f1_array = arange(pump_carrier.frequency - (pump_carrier.baud_rate * (1 + pump_carrier.roll_off) / 2), ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() @AndreaDAmico Can you please help to fix this error? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Hi @mukherjeearup, |
Beta Was this translation helpful? Give feedback.
Hi,
That error is raised within the numpy method
arange
when at least one of the three inputs is an array instead of being a scalar. You should find out which of them is an array and why. This behavior has to depend on your specific usage (maybe a wrong format in the input files) as it is not the expected behavior (that function is covered within the GNPy tests).