You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cspa_py.pxd: a cython header file- essentially tells cython which parts of the main header file to pay attention to
16
+
Download the ``spa.c`` and ``spa.h`` files from NREL,
17
+
and copy them into the ``pvlib/spa_c_files`` directory.
12
18
13
-
spa_py.pyx : the cython code used to define both functions in the python namespace. NOTE: It is possible to provide user access to other paramters of the SPA algorithm through modifying this file
19
+
There are a total of 5 files needed to compile the C code, described below:
14
20
15
-
setup.py: a distutils file which performs the compiling of the cython code
21
+
* ``spa.c``: original C code from NREL
22
+
* ``spa.h``: header file for spa.c
23
+
* ``cspa_py.pxd``: a cython header file- essentially tells cython which parts of the main header file to pay attention to
24
+
* ``spa_py.pyx``: the cython code used to define both functions in the python namespace. NOTE: It is possible to provide user access to other paramters of the SPA algorithm through modifying this file
25
+
* ``setup.py``: a distutils file which performs the compiling of the cython code
16
26
17
-
**the process produces two files**
18
-
19
-
c_adder.c: an intermediate cython c file
20
-
c_adder.so: the python module which can be imported into a namespace
21
-
22
-
in order to process the orignial 5 files, use the following bash command inside this folder
27
+
The cython compilation process produces two files:
28
+
* ``spa_py.c``: an intermediate cython c file
29
+
* ``spa_py.so``: the python module which can be imported into a namespace
23
30
31
+
To process the original 5 files,
32
+
use the following shell command inside this folder
24
33
25
34
$ python setup.py build_ext --inplace
26
35
27
-
This folder also contains the original test files from the NREL C code. This can be run to check the underlying code using the following shell commands:
0 commit comments