From 8907945ab2bb4821344ac706dbf7d13fa9e60614 Mon Sep 17 00:00:00 2001 From: Pedro Camargo Date: Tue, 30 May 2023 00:31:17 +1000 Subject: [PATCH] fixes deprecation --- populationsim/multi_integerizer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/populationsim/multi_integerizer.py b/populationsim/multi_integerizer.py index 6b67394..446d82b 100644 --- a/populationsim/multi_integerizer.py +++ b/populationsim/multi_integerizer.py @@ -89,7 +89,7 @@ def integerize(self): # print "sub_int_weights\n", sub_int_weights # print "sub_resid_weights\n", sub_resid_weights - sub_control_totals = np.asanyarray(self.sub_controls_df).astype(np.int) + sub_control_totals = np.asanyarray(self.sub_controls_df).astype(int) sub_countrol_importance = np.asanyarray(self.sub_countrol_importance).astype(np.float64) relaxed_sub_control_totals = np.dot(sub_float_weights, sub_incidence) @@ -248,7 +248,7 @@ def try_simul_integerizing( logger.info("restoring %s zero weight rows" % zero_weight_rows.sum()) integerized_weights = \ pd.DataFrame(data=np.zeros( - sub_weights.shape, dtype=np.int), + sub_weights.shape, dtype=int), columns=sub_weights.columns, index=sub_weights.index) integerized_weights.update(integerizer.integerized_weights)