Skip to content

Commit

Permalink
replace deprecated numpy.rank with numpy.ndim
Browse files Browse the repository at this point in the history
  • Loading branch information
ipelupessy committed Dec 4, 2018
1 parent b5f3b81 commit a6d845a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/amuse/datamodel/grids.py
Original file line number Diff line number Diff line change
Expand Up @@ -1073,6 +1073,6 @@ def _get_array_of_positions_from_arguments(axes_names, **kwargs):
return kwargs['position']

coordinates=[kwargs[x] for x in axes_names]
if numpy.rank(coordinates[0])==0:
if numpy.ndim(coordinates[0])==0:
return VectorQuantity.new_from_scalar_quantities(*coordinates)
return column_stack(coordinates)

0 comments on commit a6d845a

Please sign in to comment.