demeter.tests package
Submodules
demeter.tests.test_model_output module
test_model_outputs.py
Tests to ensure high-level functionality and outputs remain consistent.
@author Chris R. Vernon (chris.vernon@pnnl.gov) @license BSD 2-Clause
- class demeter.tests.test_model_output.TestOutputs(methodName='runTest')
Bases:
TestCase
Test configuration integrity.
- COMP_2010 = latitude longitude basin_id region_id water ... biomassgrass_irr biomassgrass_rfd biomasstree_irr biomasstree_rfd tundra 0 10.25 -0.25 160.0 5.0 0.000000 ... 0.0 0.0 0.0 0.0 0.000000 1 10.75 -0.25 160.0 5.0 0.000000 ... 0.0 0.0 0.0 0.0 0.000000 2 11.25 -0.25 160.0 5.0 0.000000 ... 0.0 0.0 0.0 0.0 0.000000 3 11.75 -0.25 160.0 5.0 0.000000 ... 0.0 0.0 0.0 0.0 0.000000 4 12.25 -0.25 149.0 5.0 0.000000 ... 0.0 0.0 0.0 0.0 155.163706 ... ... ... ... ... ... ... ... ... ... ... ... 67415 79.25 99.75 3.0 23.0 121.892015 ... 0.0 0.0 0.0 0.0 0.125869 67416 79.75 99.75 3.0 23.0 3.386234 ... 0.0 0.0 0.0 0.0 0.000000 67417 8.25 99.75 139.0 29.0 5.075531 ... 0.0 0.0 0.0 0.0 0.000000 67418 8.75 99.75 139.0 29.0 195.451436 ... 0.0 0.0 0.0 0.0 0.000000 67419 9.25 99.75 139.0 29.0 749.713579 ... 0.0 0.0 0.0 0.0 0.000000 [67420 rows x 55 columns]
- COMP_2015 = latitude longitude basin_id region_id water ... biomassgrass_irr biomassgrass_rfd biomasstree_irr biomasstree_rfd tundra 0 10.25 -0.25 160.0 5.0 0.000000 ... 0.0 0.0 0.0 0.0 0.000000 1 10.75 -0.25 160.0 5.0 0.000000 ... 0.0 0.0 0.0 0.0 0.000000 2 11.25 -0.25 160.0 5.0 0.000000 ... 0.0 0.0 0.0 0.0 0.000000 3 11.75 -0.25 160.0 5.0 0.000000 ... 0.0 0.0 0.0 0.0 0.000000 4 12.25 -0.25 149.0 5.0 0.000000 ... 0.0 0.0 0.0 0.0 0.000000 ... ... ... ... ... ... ... ... ... ... ... ... 67415 79.25 99.75 3.0 23.0 121.892015 ... 0.0 0.0 0.0 0.0 0.125869 67416 79.75 99.75 3.0 23.0 3.386234 ... 0.0 0.0 0.0 0.0 0.000000 67417 8.25 99.75 139.0 29.0 5.075531 ... 0.0 0.0 0.0 0.0 0.000000 67418 8.75 99.75 139.0 29.0 195.451436 ... 0.0 0.0 0.0 0.0 0.000000 67419 9.25 99.75 139.0 29.0 749.713579 ... 0.0 0.0 0.0 0.0 0.000000 [67420 rows x 55 columns]
- GCAMWRAPPER_DF = region child-nodes year land-allocation 0 Africa_Eastern Corn_AfrCstE_IRR_hi 1975 0.009381 1 Africa_Eastern Corn_AfrCstE_IRR_hi 1990 0.008705 2 Africa_Eastern Corn_AfrCstE_IRR_hi 2005 0.010365 3 Africa_Eastern Corn_AfrCstE_IRR_hi 2010 0.012348 4 Africa_Eastern Corn_AfrCstE_IRR_hi 2015 0.013194 ... ... ... ... ... 101540 USA biomassTree_UsaPacNW_RFD_lo 1975 0.000000 101541 USA biomassTree_UsaPacNW_RFD_lo 1990 0.000000 101542 USA biomassTree_UsaPacNW_RFD_lo 2005 0.000000 101543 USA biomassTree_UsaPacNW_RFD_lo 2010 0.000000 101544 USA biomassTree_UsaPacNW_RFD_lo 2015 0.000000 [101545 rows x 4 columns]
- RUN_DIR = 'C:\\Projects\\demeter_dev\\demeter\\demeter\\tests\\data'
- test_proj_outputs_using_args()
Test for projection outputs by passing arguments