Skip to content

Add scan_id_padding param to NSLS2PathProvider - #308

Merged
Jakub Wlodek (jwlodek) merged 3 commits into
NSLS2:mainfrom
sligara7:scan-id-padding
Oct 8, 2026
Merged

Jakub Wlodek (jwlodek) merged 3 commits into
NSLS2:mainfrom
sligara7:scan-id-padding

Conversation

@sligara7

Copy link
Copy Markdown
Contributor

Adds an optional scan_id_padding integer parameter (default 6) to NSLS2PathProvider, controlling the zero-pad width of the scan_{scan_id} directory name.

Assisted-by: copilot:claude-opus-4-8
Copilot AI balanced review requested due to automatic review settings October 8, 2026 18:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Invalid widths need validation, documentation updates, and test coverage.

3 open findings
What changed in this PR

Adds configurable zero-padding for scan ID directory names.

Changes:

  • Adds the scan_id_padding parameter.
  • Uses the configured width when formatting scan IDs.
File Description
nslsii/​ophyd_async/​providers.py Implements configurable scan ID padding.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread nslsii/ophyd_async/providers.py
Comment thread nslsii/ophyd_async/providers.py
Comment thread nslsii/ophyd_async/providers.py
Assisted-by: copilot:claude-opus-4-8
Copilot AI balanced review requested due to automatic review settings October 8, 2026 18:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Validation does not consistently reject non-integer padding values.

2 open findings
2 resolved since last review

🧠 Review effort: Balanced

Comment thread nslsii/ophyd_async/providers.py Outdated
Assisted-by: copilot:claude-opus-4-8
Copilot AI balanced review requested due to automatic review settings October 8, 2026 18:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The implementation is backward-compatible, documented, validated, and adequately tested.

0 open findings

3 resolved since last review

🧠 Review effort: Balanced

@jwlodek
Jakub Wlodek (jwlodek) merged commit b69592a into NSLS2:main Oct 8, 2026
3 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.

3 participants