iamlikeme / rainflow

Implementation of the rainflow-counting algorythm in Python
MIT License
105 stars 34 forks source link

Why First and Last Point was not yielded? #9

Closed marscarl59 closed 6 years ago

marscarl59 commented 6 years ago

It is a question, not a issue. It is noticed "The generator never yields the first and the last points in the series." Would it be better to yield first and last point as well?

iamlikeme commented 6 years ago

You can find explanation in #4 Now that you mention it, I think it might be useful to control this behavior with a keyword argument.

iamlikeme commented 6 years ago

I added keyword arguments left and right which allow you to treat the first and the last points as reversals (i.e. they would be yielded by the reversals generator). See #10.

iamlikeme commented 6 years ago

Published to PyPI as v2.1.1