Skip to content

Commit

Permalink
Remove deprecation warning when extracting values from an array
Browse files Browse the repository at this point in the history
  • Loading branch information
enekomartinmartinez committed Jan 12, 2024
1 parent cbde445 commit 0403695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysd/py_backend/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def make_flat_df(df, return_addresses, flatten=False):
if is_dataarray and values[0].size == 1:
# some elements are returned as 0-d arrays, convert
# them to float
values = [float(x) for x in values]
values = [x.squeeze().values[()] for x in values]
is_dataarray = False

if flatten and is_dataarray:
Expand Down

0 comments on commit 0403695

Please sign in to comment.