Skip to content

Conversation

@mhasself
Copy link
Member

@mhasself mhasself commented May 14, 2025

(Note this PR includes #865 -- can be rebased once that is merged.)

Description

  • fromfile_scan is now a process rather than a task, because it can run ad infinitum (like generate_scan).
  • New file format is supported -- pickle-based, so user can pass a dict with the "free_form" and "loopable" options.
  • _run_track now explicitly sets the ACU profiler and interpolation modes. This will ensure that standard generate_scans are always run with those in the classic way.

There are some interface changes here, in fromfile_scan, but that function has not been broadly used and is not implicated in regular observations.

Motivation and Context

Resolves #864.

How Has This Been Tested?

Tested with simulator; tested on LAT to confirm that generate_scan works as before, and also tested a sine-like trajectory for the free_form, fromfile mode.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

- fromfile_scan is now a process rather than a task, because it can
  run ad infinitum (like generate_scan).
- New file format is supported -- pickle-based, so user can pass a
  dict with the "free_form" and "loopable" options.
- _run_track now explicitly sets the ACU profiler and interpolation
  modes. This will ensure that standard generate_scans are always run
  with those in the classic way.
@mhasself mhasself force-pushed the mhasself/acu-fix-fromfile branch from 6d5cf7e to cc82a05 Compare May 19, 2025 16:09
@BrianJKoopman BrianJKoopman self-requested a review May 30, 2025 18:24
Copy link
Member

@BrianJKoopman BrianJKoopman left a comment

Choose a reason for hiding this comment

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

This looks good. I mostly had docstring syntax related comments, but also some questions about looping from files.

Copy link
Member

@BrianJKoopman BrianJKoopman left a comment

Choose a reason for hiding this comment

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

Sorry, one other general comment related to resolving #864. Does this now "specify what to do with el / corot axes (stop / preset / following)"?

@mhasself
Copy link
Member Author

Sorry, one other general comment related to resolving #864. Does this now "specify what to do with el / corot axes (stop / preset / following)"?

No, but it's a step in right direction. I propose to close that issue and re-open if those features become critical.

@mhasself
Copy link
Member Author

Thanks, I believe I've addressed all items. The ptstack_format function is not used any more so it's been removed.

Copy link
Member

@BrianJKoopman BrianJKoopman left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for the updates!

@BrianJKoopman BrianJKoopman merged commit 2bed47d into main Jun 18, 2025
5 checks passed
@BrianJKoopman BrianJKoopman deleted the mhasself/acu-fix-fromfile branch June 18, 2025 17:27
@BrianJKoopman BrianJKoopman changed the title ACU: restore, and then enhance, "fromfile" functionality ACU: Restore and enhance "fromfile" functionality Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ACU: fromfile_scan is broken

2 participants