hephy-dd / comet

COMET - Control and Measurement Toolkit
GNU General Public License v3.0
2 stars 2 forks source link

Issue with step in linear range function #71

Closed arnobaer closed 1 year ago

arnobaer commented 2 years ago

Linear range class functions.LinearRange does return an empty sequence if step exceeds the absolute ramp distance.

>>> list(LinearRange(0, 1, 5))
[]

It should return

>>> list(LinearRange(0, 1, 5))
[0.0, 1.0]