Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maritsandstad opened this issue Jun 23, 2023 · 0 comments

Comments

@maritsandstad
Copy link
Contributor

Describe the bug

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant