diff --git a/pvlib/tools.py b/pvlib/tools.py index cbd59a8541..dfeb8173f2 100644 --- a/pvlib/tools.py +++ b/pvlib/tools.py @@ -212,7 +212,7 @@ def _scalar_out(input): else: # # works if it's a 1 length array and # will throw a ValueError otherwise - output = input.item() + output = np.asarray(input).item() return output