File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 2222from dotenv import dotenv_values
2323from effortsharing .allocation import allocation
2424from effortsharing .datareading import datareading
25+ from effortsharing .policyscens import policyscenadding
2526from flask import Flask , jsonify , request
2627from flask_cors import CORS
2728
@@ -668,7 +669,17 @@ def allocation_map(year, allocation_method):
668669 return {"data" : rows , "domain" : domain }
669670
670671
672+ def read_policy_scenarios ():
673+ policyscenner = policyscenadding (
674+ input_file = config .effort_sharing_config ,
675+ xr_total = ds_global ,
676+ )
677+ policyscenner .read_engage_data ()
678+ policyscenner .filter_and_convert ()
679+
671680# Reference pathway data (xr_policyscen.nc)
681+ # TODO once I got the engage data, I can try read_policy_scenarios()
682+ # ds_policyscenner = read_policy_scenarios()
672683ds_policyscen = xr .open_dataset (config .data_dir / "xr_policyscen.nc" )
673684
674685
You can’t perform that action at this time.
0 commit comments