Skip to content

Commit c4b3f62

Browse files
committed
Fixed astype() error
1 parent 742ba57 commit c4b3f62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stochtree/forest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def combine_forests(
175175
if not np.issubdtype(forest_inds.dtype, np.number):
176176
raise ValueError("forest_inds must be an integer-convertible np.array")
177177
forest_inds_sorted = np.sort(forest_inds)
178-
forest_inds_sorted = np.astype(forest_inds_sorted, int)
178+
forest_inds_sorted = forest_inds_sorted.astype(int)
179179
self.forest_container_cpp.CombineForests(forest_inds_sorted)
180180

181181
def add_to_forest(

0 commit comments

Comments
 (0)