Initialising input_handler with value 2500 for nyend, still couldn't run past 2100
What did you do?
What actually happened?
What did you expect to happen?
Failing Test
from ciceroscm import input_handler, concentrations_emissions_handler
def test_run_ce_past_2100(test_data_dir):
ih = input_handler.InputHanlder("nyend": 2500, "gaspam_file": os.path.join(test_data_dir, "gases_v1RCMIP.txt"), "concentrations_file": os.path.join(test_data_dir, "ssp245_conc_RCMIP.txt"), "emissions_file": os.path.join(test_data_dir, "ssp245_em_RCMIP.txt", "nat_ch4_file": os.path.join(test_data_dir, "natemis_ch4.txt"), "nat_n2o_file": os.path.join(test_data_dir, "natemis_n2o.txt")})
ce_handler = concentrations_emissions_handler.ConcentrationsEmissionsHandler(ih, {"nyend":2500})
ce_handler.reset_with_new_pams({})
for yr in range(1750, 2500+1):
ce_handler.emi2conc(yr)
forc, fn, fs = ce_handler.conc2forc(yr, 0, 0)
return ce_handler.forc
Please put code (ideally in the form of a unit test) which fails below
Screenshots
If applicable, add screenshots to help explain your problem.
System (please complete the following information):
OS: Linux
Python 3.5
Additional context
Also testing to run just concentrations emissions handler should be added
Describe the bug
Initialising input_handler with value 2500 for nyend, still couldn't run past 2100
Failing Test from ciceroscm import input_handler, concentrations_emissions_handler def test_run_ce_past_2100(test_data_dir): ih = input_handler.InputHanlder("nyend": 2500, "gaspam_file": os.path.join(test_data_dir, "gases_v1RCMIP.txt"), "concentrations_file": os.path.join(test_data_dir, "ssp245_conc_RCMIP.txt"), "emissions_file": os.path.join(test_data_dir, "ssp245_em_RCMIP.txt", "nat_ch4_file": os.path.join(test_data_dir, "natemis_ch4.txt"), "nat_n2o_file": os.path.join(test_data_dir, "natemis_n2o.txt")}) ce_handler = concentrations_emissions_handler.ConcentrationsEmissionsHandler(ih, {"nyend":2500}) ce_handler.reset_with_new_pams({}) for yr in range(1750, 2500+1): ce_handler.emi2conc(yr) forc, fn, fs = ce_handler.conc2forc(yr, 0, 0) return ce_handler.forc Please put code (ideally in the form of a unit test) which fails below
Screenshots
If applicable, add screenshots to help explain your problem.
System (please complete the following information):
Additional context Also testing to run just concentrations emissions handler should be added