Skip to content

Fix image number calculation for grid scans #55

@DominicOram

Description

@DominicOram

If I have a gonio with axes like:

"starts": [0.0],
"ends": [2.0],
"increments": [0.2],

then calculate_grid_scan_range calculates that there will be 10 images but actually I think there should be 11:

0.0, 0.2, 0.4, 0.6, 0.8, 1.0, 1.2, 1.4, 1.6, 1.8, 2.0

Subsequently when we pass this to scanspec, because we're assuming 10 images, it then gives us:

0.0, 0.222, 0.444, 0.666, 0.888 ... 2.0

Which disagrees with the increment number we've passed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions