Skip to content

updated name='phantom1' to name='phantom' to be able to write data to phantom asset folder - #85

Merged
Afroza Haque (Afroza-BNL) merged 2 commits into
NSLS2:mainfrom
sligara7:fix_phantom_asset_name
Sep 8, 2026
Merged

updated name='phantom1' to name='phantom' to be able to write data to phantom asset folder#85
Afroza Haque (Afroza-BNL) merged 2 commits into
NSLS2:mainfrom
sligara7:fix_phantom_asset_name

Conversation

@sligara7

Copy link
Copy Markdown
Contributor

There was an error in the path provider name for the phantom. phantom1 != phantom, which was the assets folder. Now updated so that path provider is phantom.

Copilot AI lite review requested due to automatic review settings September 8, 2026 21:08

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 change is small and localized, and the remaining feedback is a minor maintainability/naming consistency suggestion.

Pull request overview

This PR fixes the Phantom detector’s name so it matches the expected "phantom" asset folder, allowing data to be written to the correct location via the path provider.

Changes:

  • Update PhantomDetector(..., name=...) from "phantom1" to "phantom" in the collection profile.
File summaries
File Description
src/hextools/profiles/collection.py Corrects the Phantom detector name to align with the intended assets folder/path provider behavior.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

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

Comment thread src/hextools/profiles/collection.py Outdated
Copilot AI review requested due to automatic review settings September 8, 2026 21:15

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

The variable rename from phantom1 to phantom can break existing user scripts/notebooks unless a backwards-compatible alias is kept.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread src/hextools/profiles/collection.py
@Afroza-BNL
Afroza Haque (Afroza-BNL) merged commit 272ab98 into NSLS2:main Sep 8, 2026
5 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