Skip to content

Commit c5248bb

Browse files
committed
add the requires scipy decorator
* still 2 tests in model chain strugling
1 parent c9a893a commit c5248bb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pvlib/test/test_way_faster.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import numpy as np
88
from pvlib import pvsystem
99
from pvlib.way_faster import faster_way, slower_way
10+
from conftest import requires_scipy
1011

1112
logging.basicConfig()
1213
LOGGER = logging.getLogger(__name__)
@@ -17,6 +18,7 @@
1718
CECMOD = pvsystem.retrieve_sam('cecmod')
1819

1920

21+
@requires_scipy
2022
def test_fast_spr_e20_327():
2123
spr_e20_327 = CECMOD.SunPower_SPR_E20_327
2224
x = pvsystem.calcparams_desoto(
@@ -50,6 +52,7 @@ def test_fast_spr_e20_327():
5052
return isc, voc, imp, vmp, pmp, pvs
5153

5254

55+
@requires_scipy
5356
def test_fast_fs_495():
5457
fs_495 = CECMOD.First_Solar_FS_495
5558
x = pvsystem.calcparams_desoto(
@@ -84,6 +87,7 @@ def test_fast_fs_495():
8487
return isc, voc, imp, vmp, pmp, i, v, p, pvs
8588

8689

90+
@requires_scipy
8791
def test_slow_spr_e20_327():
8892
spr_e20_327 = CECMOD.SunPower_SPR_E20_327
8993
x = pvsystem.calcparams_desoto(
@@ -117,6 +121,7 @@ def test_slow_spr_e20_327():
117121
return isc, voc, imp, vmp, pmp, pvs
118122

119123

124+
@requires_scipy
120125
def test_slow_fs_495():
121126
fs_495 = CECMOD.First_Solar_FS_495
122127
x = pvsystem.calcparams_desoto(

0 commit comments

Comments
 (0)