Skip to content

Commit eda7693

Browse files
committed
extract item to avoid numpy deprecation warning
1 parent 93d8e48 commit eda7693

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ogcore/SS.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def inner_loop(outer_loop_vars, p, client):
400400
C_vec = np.zeros(p.I)
401401
K_demand_open_vec = np.zeros(p.M)
402402
for i_ind in range(p.I):
403-
C_vec[i_ind] = aggr.get_C(c_i[i_ind, :, :], p, "SS")
403+
C_vec[i_ind] = aggr.get_C(c_i[i_ind, :, :], p, "SS").item()
404404
Y_vec = np.dot(p.io_matrix.T, C_vec)
405405
for m_ind in range(p.M - 1):
406406
KYrat_m = firm.get_KY_ratio(r, p_m, p, "SS", m_ind)

0 commit comments

Comments
 (0)