Skip to content

Commit

Permalink
v__0.149
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredgalichon committed Oct 12, 2024
1 parent bea16aa commit 5b6874f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions mec/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ def create_blp_instruments(df, theseries):
nodes_ti_k = (O_t[:,None,None] + unobs[ ['const','hpwt','air','mpd','space']].to_numpy()[None,:,:]).reshape((T*I,-1))
agent_data=pd.DataFrame()
agent_data[ ['market_ids','weights']+ ['nodes' +str(i) for i in [0,1,2,3,4] ] + ['income'] ] = np.block([[year_ti[:,None],weights_ti[:,None],nodes_ti_k,income_ti[:,None] ]])
agent_data['market_ids']=agent_data['market_ids'].astype(int)

# check consistency with pyblp
if pyblp_compatibility:
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.148",
version="0.149",
authors=["Alfred Galichon"],
author_email="[email protected]",
licence="",
Expand Down

0 comments on commit 5b6874f

Please sign in to comment.