Commit 0bc5a53
Matching Python types for return values of
* two decorators for renaming pd.Series in a function
* calcparams_* Rs return value to match temp_cell type
* adding tests for pd.Series naming and resistance_series type conversion
* methods for converting between numeric-type values
* adding more tests and clarifying documentation
* rename pdSeries clear name decorator and move it to pvlib.tools
* adding support for scalar to np.ndarray of any shape
* updating match_shape docstring
* fixing syntax error
* fix stickler issues
* different approach
* remove unnecessary asserts
* remove file
* update whatsnew
* add tests for all scalar inputs, and pass np.arrays to assert_allclose
* Update docs/sphinx/source/whatsnew/v0.10.0.rst
Co-authored-by: Cliff Hansen <cwhanse@sandia.gov>
* if condition swap, tests for tools.get_pandas_index, tests for returned Python type
* fix typo in docstring
* correct calcparams_cec test, and add test for calcparams_pvsyst all scalars
---------
Co-authored-by: Cliff Hansen <cwhanse@sandia.gov>pvsystem.calcparams_* (#1700)1 parent 19467f3 commit 0bc5a53
5 files changed
Lines changed: 343 additions & 64 deletions
File tree
- docs/sphinx/source/whatsnew
- pvlib
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
32 | 37 | | |
33 | 38 | | |
34 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
1540 | 1541 | | |
1541 | 1542 | | |
1542 | 1543 | | |
1543 | | - | |
| 1544 | + | |
1544 | 1545 | | |
1545 | 1546 | | |
1546 | 1547 | | |
| |||
1663 | 1664 | | |
1664 | 1665 | | |
1665 | 1666 | | |
| 1667 | + | |
1666 | 1668 | | |
1667 | 1669 | | |
1668 | | - | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
1669 | 1682 | | |
1670 | 1683 | | |
1671 | 1684 | | |
| |||
1744 | 1757 | | |
1745 | 1758 | | |
1746 | 1759 | | |
1747 | | - | |
| 1760 | + | |
1748 | 1761 | | |
1749 | 1762 | | |
1750 | 1763 | | |
| |||
1861 | 1874 | | |
1862 | 1875 | | |
1863 | 1876 | | |
1864 | | - | |
| 1877 | + | |
1865 | 1878 | | |
1866 | 1879 | | |
1867 | 1880 | | |
| |||
1920 | 1933 | | |
1921 | 1934 | | |
1922 | 1935 | | |
1923 | | - | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
1924 | 1948 | | |
1925 | 1949 | | |
1926 | 1950 | | |
| |||
0 commit comments