Skip to content

Fix for when snake is enabled (by default) and there is only line#343

Merged
Dmitri Gavrilov (dmgav) merged 1 commit into
NSLS2:masterfrom
andrewmkiss:fix-snake-on-line
Jun 30, 2026
Merged

Fix for when snake is enabled (by default) and there is only line#343
Dmitri Gavrilov (dmgav) merged 1 commit into
NSLS2:masterfrom
andrewmkiss:fix-snake-on-line

Conversation

@andrewmkiss

Copy link
Copy Markdown

When running step scans, by default, snake is enabled. If a single row or column is collected and snake is still enabled, exporting the data will fail. This is an attempt to resolve that, by overriding the snake value.

Description

The code checks if there is only one row or column collected in the map. If there is, then it will disable snake.

Motivation and Context

This is required because if there is only one "row" of data, if snake is enable (default), then it will try to flip every other row which starts at row of index 1, which doesn't exist.

Summary of Changes for Release Notes

Add check for a single line of mapping and disables snake

Fixed

Added

Changed

Removed

How Has This Been Tested?

Tested on 1D/2D mapping data

@andrewmkiss andrewmkiss marked this pull request as ready for review June 29, 2026 19:57
@andrewmkiss

Copy link
Copy Markdown
Author

Dmitri Gavrilov (@dmgav) Can you please review?

@dmgav Dmitri Gavrilov (dmgav) merged commit 3fcc189 into NSLS2:master Jun 30, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants