Selections like "x 1 to 1.5 2 to 2.5" select unwanted atoms
If a selection fulfills the following conditions, it is incorrectly evaluated:
* it uses a real-valued keyword (like
* it uses multiple
A to B parts in the same expression (like in the title), and
* the difference between the closer endpoints of two
to ranges is less than one.
In such a case, the selection incorrectly selects also values between the two
to ranges. For example, in the case in the title, also positions with
x between 1.5 and 2 are incorrectly selected.
Will upload a fix shortly; the issue is a copy-paste bug between integer and real
Fix handling of real-valued 'to' selection ranges
Two adjacent ranges were incorrectly merged to a single range if the
difference between their nearest endpoints was less than one (the extra
+1 in the code is incorrectly copy-pasted from the integer case).
Add tests for handling overlapping and near-overlapping ranges.