Skip to content

Commit

Permalink
Solve bug when converting to floats 0-d dataarrays
Browse files Browse the repository at this point in the history
  • Loading branch information
enekomartinmartinez committed Mar 17, 2022
1 parent bb33de7 commit 5ec38d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pysd/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.2.2"
__version__ = "2.2.3"
1 change: 1 addition & 0 deletions pysd/py_backend/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ def make_flat_df(df, return_addresses, flatten=False):
# some elements are returned as 0-d arrays, convert
# them to float
values = [float(x) for x in values]
is_dataarray = False

if flatten and is_dataarray:
_add_flat(new_df, real_name, values)
Expand Down

0 comments on commit 5ec38d7

Please sign in to comment.