Ejemplo n.º 1
0
    def test_sapm_dc_power(self):
        ''' Test SAPM DC power. '''

        with pytest.warns(rdtoolsDeprecationWarning):
            dc_power, poa = sapm_dc_power(self.pvsystem, self.irrad)
        self.assertEqual(self.irrad.index.freq, dc_power.index.freq)
        self.assertEqual(len(self.irrad), len(dc_power))
Ejemplo n.º 2
0
    def test_sapm_dc_power(self):
        ''' Test SAPM DC power. '''

        dc_power = sapm_dc_power(self.pvsystem, self.irrad)
        self.assertEqual(self.irrad.index.freq, dc_power.index.freq)
        self.assertEqual(len(self.irrad), len(dc_power))