Skip to content

Commit

Permalink
fix for np2
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnitz committed Sep 4, 2024
1 parent 4e6af69 commit a21f1cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pycbc/conversions.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ def ensurearray(*args):
inputs was an array.
"""
input_is_array = any(isinstance(arg, numpy.ndarray) for arg in args)
args = numpy.broadcast_arrays(*args)
args = list(numpy.broadcast_arrays(*args))
args.append(input_is_array)
return args
return tuple(args)


def formatreturn(arg, input_is_array=False):
Expand Down

0 comments on commit a21f1cb

Please sign in to comment.