Example #1
0
def test_pdsi(precips_mm_monthly, pet_thornthwaite_mm, awc_inches,
              data_year_start_monthly, calibration_year_start_monthly,
              calibration_year_end_monthly):

    # the indices.pdsi() function is a wrapper for palmer.pdsi(), so we'll
    # just confirm that this function can be called without raising an error and
    # the palmer.pdsi() function itself is being tested within test_palmer.py
    indices.pdsi(precips_mm_monthly, pet_thornthwaite_mm, awc_inches,
                 data_year_start_monthly, calibration_year_start_monthly,
                 calibration_year_end_monthly)
Example #2
0
    def test_pdsi(self):

        # the indices.pdsi() function is a wrapper for palmer.pdsi(), so we'll
        # just confirm that this function can be called without raising an error and
        # the compute.pdsi() function itself being tested within test_palmer.py
        indices.pdsi(self.fixture_precips_mm_monthly, self.fixture_pet_mm,
                     self.fixture_awc_inches,
                     self.fixture_data_year_start_monthly,
                     self.fixture_calibration_year_start_monthly,
                     self.fixture_calibration_year_end_monthly)