diff --git a/mec/data.py b/mec/data.py index a6dbf28..8b46061 100644 --- a/mec/data.py +++ b/mec/data.py @@ -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: diff --git a/setup.py b/setup.py index 35d22a2..5a1508a 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name="mec", - version="0.148", + version="0.149", authors=["Alfred Galichon"], author_email="ag133@nyu.edu", licence="",