ciceroOslo / ciceroscm

Python version of the CICERO-SCM simple climate model/emulator
Apache License 2.0
17 stars 4 forks source link

Input_handler chops data to 1750 to 2100 for concentrations data without taking configurations into account. #118

Open maritsandstad opened 1 year ago

maritsandstad commented 1 year ago

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