Skip to content

Conversation

@mmccrackan
Copy link
Contributor

LAT schedule errored out when passing in scan_type instead of the to-be depreciated type argument, since it defaults to type=1 if not passed. Switched to using scan_type instead.

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 change looks good, since type is being replaced, but I'm not sure I follow the error that occurred, because type defaults to None in the agent.

@mmccrackan
Copy link
Contributor Author

This change looks good, since type is being replaced, but I'm not sure I follow the error that occurred, because type defaults to None in the agent.

I think it occurred because scheduler was changed to pass in scan_type without passing in type. Sorunlib has type default to 1, so it is always passed and is not None (

type=type,
).

On this line in socs (https://github.com/simonsobs/socs/blob/194cc220036d4f8f41296a39e33bd13cf255c257/socs/agents/acu/agent.py#L2137), if type is not None, scan_type is replaced with type, so even though scan_type was being passed as 3, it was overwritten with 1.

@BrianJKoopman
Copy link
Member

Ah, that makes sense, thanks for the explanation.

@BrianJKoopman BrianJKoopman merged commit fa0ae84 into main Nov 24, 2025
6 checks passed
@BrianJKoopman BrianJKoopman deleted the 251122_pass_scan_type branch November 24, 2025 16:05
@BrianJKoopman BrianJKoopman changed the title Switch from type to scan_type seq: Switch from type to scan_type Nov 24, 2025
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.

3 participants