Skip to content

Commit

Permalink
v__0.185
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredgalichon committed Dec 7, 2024
1 parent b6d3252 commit 8bdfb7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions mec/blp.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ def pi_invs(pi_t_y,theLambda_k_l,eta_t_i_k, xi_l_y,maxit = 100000, reltol=1E-8,


def pi_inv(pi_y,theLambda_k_l,eta_i_k, xi_l_y,maxit = 100000, reltol=1E-8, require_der = 0 ):
U_t_y, dUdLambda_t_y_k_l = pi_invs(pi_y[None,:],theLambda_k_l,eta_i_k[None,:,:], xi_l_y,maxit , reltol, require_der )
res = pi_invs(pi_y[None,:],theLambda_k_l,eta_i_k[None,:,:], xi_l_y,maxit , reltol, require_der )
if require_der>0:
return U_t_y.squeeze(axis=0), dUdLambda_t_y_k_l.squeeze(axis=0)
return [res[0].squeeze(axis=0), res[1].squeeze(axis=0)]
else:
return U_t_y.squeeze(axis=0), None
return [res[0].squeeze(axis=0) ]



Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="mec",
version="0.184",
version="0.185",
authors=["Alfred Galichon"],
author_email="ag133@nyu.edu",
licence="",
Expand Down

0 comments on commit 8bdfb7d

Please sign in to comment.