Skip to content

Commit

Permalink
v0.4.2
Browse files Browse the repository at this point in the history
Fix: rfc throws an exception, if parameter `wl` is set to None.
  • Loading branch information
a-ma72 committed Aug 27, 2022
1 parent 2663fb6 commit cedd8c9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
requires = [
"setuptools>=42",
"wheel",
"numpy"
"numpy~=1.19.5"
]
build-backend = "setuptools.build_meta"
2 changes: 1 addition & 1 deletion python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
matplotlib>=3.2.2
numpy>=1.19.5
numpy~=1.19.5
pandas>=1.1.5
seaborn>=0.11.1
4 changes: 2 additions & 2 deletions python/setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup, Extension
from os import path

version = (0, 4, 1)
version = (0, 4,2)

try:
from numpy import get_include as get_numpy_include
Expand All @@ -25,7 +25,7 @@ def main():
keywords='rainflow counting',
author="Andreas Martin",
license='BSD-2-Clause License',
url='http://github.com/AndreasMartin72/rainflow',
url='http://github.com/a-ma72/rainflow',
setup_requires=['wheel'],
install_requires=['numpy'],
packages=["rfcnt", "rfcnt.tests"],
Expand Down
2 changes: 1 addition & 1 deletion python/src/rfcnt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ int parse_rfc_kwargs( PyObject* kwargs, Py_ssize_t len, Rainflow *rf, Rainflow::
Py_DECREF( empty );

// Parameters of the SN curve, if defined
if( wl )
if( wl && wl != Py_None )
{
if( !PyDict_Check( wl ) )
{
Expand Down

0 comments on commit cedd8c9

Please sign in to comment.