Skip to content

Commit cedd8c9

Browse files
committed
v0.4.2
Fix: rfc throws an exception, if parameter `wl` is set to None.
1 parent 2663fb6 commit cedd8c9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
requires = [
33
"setuptools>=42",
44
"wheel",
5-
"numpy"
5+
"numpy~=1.19.5"
66
]
77
build-backend = "setuptools.build_meta"

python/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
matplotlib>=3.2.2
2-
numpy>=1.19.5
2+
numpy~=1.19.5
33
pandas>=1.1.5
44
seaborn>=0.11.1

python/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import setup, Extension
22
from os import path
33

4-
version = (0, 4, 1)
4+
version = (0, 4,2)
55

66
try:
77
from numpy import get_include as get_numpy_include
@@ -25,7 +25,7 @@ def main():
2525
keywords='rainflow counting',
2626
author="Andreas Martin",
2727
license='BSD-2-Clause License',
28-
url='http://github.com/AndreasMartin72/rainflow',
28+
url='http://github.com/a-ma72/rainflow',
2929
setup_requires=['wheel'],
3030
install_requires=['numpy'],
3131
packages=["rfcnt", "rfcnt.tests"],

python/src/rfcnt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ int parse_rfc_kwargs( PyObject* kwargs, Py_ssize_t len, Rainflow *rf, Rainflow::
7777
Py_DECREF( empty );
7878

7979
// Parameters of the SN curve, if defined
80-
if( wl )
80+
if( wl && wl != Py_None )
8181
{
8282
if( !PyDict_Check( wl ) )
8383
{

0 commit comments

Comments
 (0)