Commit 7736e586 authored by Roelofsen, Hans's avatar Roelofsen, Hans
Browse files

typo2

parent b8754231
......@@ -20,7 +20,7 @@ n_batches = int(args.n_batches)
# Recover the Pickled doren object
pkl_src = os.path.join('./pkl_src/', args.pkl)
#pkl_src = r'c:\Users\roelo008\OneDrive - WageningenUR\a_projects\DOREN\b_compiled_data\a_pkl\doren_20201001.pkl'
#pkl_src = r'c:\Users\roelo008\OneDrive - WageningenUR\a_projects\DOREN\b_compiled_data\a_pkl\doren_20201005.pkl'
with open(pkl_src, 'rb') as handle:
doren = pickle.load(handle)
......
......@@ -629,8 +629,9 @@ class Doren:
os.mkdir(pg_dir)
# Compile dataframe for writing to file
out_cols = ['plot_id', 'totN_mol_ha', 'soil_type_label', 'country_label', '5_yearly_precip',
'5_yearly_temp', 'dist2nearest', 'nearest_id']
out_cols = ['plot_id', 'totN_mol_ha', 'soil_type_label', 'country_label', 'five_yearly_precip',
'five_yearly_temp', 'dist2nearest', 'nearest_id']
# TODO: verify if all out_cols are present in self.eva
out_df = self.eva.loc[:, out_cols]
out_df.loc[self.positive_plots, 'respons'] = np.uint8(1)
out_df.loc[self.negative_plots, 'respons'] = np.uint8(0)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment