h2integrate.converters.solar.test.test_pysam_solar#
Functions
|
|
Test PYSAMSolarPlantPerformanceModel with a basic input scenario: |
|
Test PYSAMSolarPlantPerformanceModel with a basic input scenario: |
|
Test PYSAMSolarPlantPerformanceModel with tilt angle calculated using 'lat-func' option. |
Classes
Unit tests for PYSAMSolarPlantPerformanceModel.calc_tilt_angle with various latitudes including southern hemisphere (negative) values. |
- class h2integrate.converters.solar.test.test_pysam_solar.TestCalcTiltAngle#
Unit tests for PYSAMSolarPlantPerformanceModel.calc_tilt_angle with various latitudes including southern hemisphere (negative) values.
- _make_model(tilt_angle_func, tilt=None, create_model_from='default')#
Create a lightweight mock of PYSAMSolarPlantPerformanceModel with the minimum attributes needed by calc_tilt_angle.
- test_lat_mode(latitude, expected_tilt)#
- test_lat_func_mode(latitude, expected_tilt)#
- test_lat_func_symmetric()#
Verify that positive and negative latitudes produce identical tilt angles.
- test_none_mode_default_with_user_tilt()#
- test_none_mode_default_without_user_tilt()#
- test_none_mode_new_with_user_tilt()#
- test_none_mode_new_without_user_tilt()#
- test_none_mode_new_no_tilt_anywhere()#
- pytestmark = [Mark(name='unit', args=(), kwargs={})]#
- h2integrate.converters.solar.test.test_pysam_solar.basic_pysam_options()#
- h2integrate.converters.solar.test.test_pysam_solar.test_pvwatts_outputs(basic_pysam_options, solar_resource_dict, plant_config, subtests)#
- h2integrate.converters.solar.test.test_pysam_solar.test_pvwatts_singleowner_notilt(basic_pysam_options, solar_resource_dict, plant_config, subtests)#
Test PYSAMSolarPlantPerformanceModel with a basic input scenario:
pysam_options is provided
create_model_from is set to ‘default’
- config_name is ‘PVWattsSingleOwner’, this is used to create the starting system model
because create_model_from is default.
tilt_angle_func is “none” and tilt is provided (in two separate places) as zero.
- h2integrate.converters.solar.test.test_pysam_solar.test_pvwatts_singleowner_notilt_different_site(basic_pysam_options, plant_config, subtests)#
Test PYSAMSolarPlantPerformanceModel with a basic input scenario:
pysam_options is provided
create_model_from is set to ‘default’
- config_name is ‘PVWattsSingleOwner’, this is used to create the starting system model
because create_model_from is default.
tilt_angle_func is “none” and tilt is provided (in two separate places) as zero.
- h2integrate.converters.solar.test.test_pysam_solar.test_pvwatts_singleowner_withtilt(basic_pysam_options, solar_resource_dict, plant_config, subtests)#
Test PYSAMSolarPlantPerformanceModel with tilt angle calculated using ‘lat-func’ option. The AEP of this test should be higher than the AEP in test_pvwatts_singleowner_notilt.