Skip to content

Conversation

@vshekar
Copy link
Collaborator

@vshekar vshekar commented Oct 15, 2025

Removed more unused functions from daq_macros

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request removes several unused functions from daq_macros.py and refactors the runRasterScan function to use a parameter dictionary instead of an if-elif chain.

Changes:

  • Removed 9 functions: rasterWait, vectorHoldWait, vectorProceed, generateGridMapFine, defineTiledRaster, collectSpec, zebraArm, zebraWaitOld, and zebraWaitDownload
  • Refactored runRasterScan to use a params dictionary for predefined raster types
  • Removed help references to deleted functions in lsdcHelp

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +2334 to +2337
rasterReqID = defineRectRaster(currentRequest,
selected_params["width"],
selected_params["height"],
selected_params["step_size"])
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: For custom raster types, the original code added step_size to both width and height when calling defineRectRaster (width+step_size, height+step_size). The refactored code uses width and height directly without this adjustment, which will produce a raster that is one step smaller in each dimension than intended.

Copilot uses AI. Check for mistakes.
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.

1 participant