Skip to content

lhapdfsets: treat variant value as pattern#5649

Open
wdconinc with Copilot wants to merge 14 commits into
developfrom
copilot/lhapdfsets-treat-variant-as-pattern
Open

lhapdfsets: treat variant value as pattern#5649
wdconinc with Copilot wants to merge 14 commits into
developfrom
copilot/lhapdfsets-treat-variant-as-pattern

Conversation

Copilot AI commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Treat lhapdfsets sets= values as glob patterns over pdfsets.index instead of exact names, so one variant value can select a class of PDF sets. Existing all and default behavior is preserved.

  • Variant resolution
    • Match each requested sets value against indexed set names.
    • Preserve request order while deduplicating overlapping matches.
    • Keep all and default as special cases.
spack install lhapdfsets sets=CT14*

This was tested with sets=CT18*,MSHT20* and it downloaded a lot...

@spackbot-triage spackbot-triage Bot added the update-package Modifications to packages in the repository label Jul 19, 2026
@wdconinc

This comment was marked as resolved.

@spackbot-app

This comment was marked as resolved.

@spackbot-app

This comment was marked as resolved.

wdconinc added 3 commits July 19, 2026 09:01
Removed the cached_property decorator from the available_sets method.
@wdconinc
wdconinc marked this pull request as ready for review July 19, 2026 08:22
Copilot AI review requested due to automatic review settings July 19, 2026 08:22

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.

Pull request overview

This PR updates the lhapdfsets Spack bundle package to allow sets= variant values to be treated as glob patterns matched against pdfsets.index, enabling a single variant value (e.g., CT14*) to select a family of PDF sets while preserving all and default behavior.

Changes:

  • Update the sets variant description to reflect support for patterns.
  • Add available_sets() and resolve_sets() helpers to map requested variant values to concrete set names with deduplication.
  • Switch install() to use resolve_sets() for determining which sets to download/install.

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

Comment thread repos/spack_repo/builtin/packages/lhapdfsets/package.py
@spackbot-triage
spackbot-triage Bot requested a review from vvolkl July 19, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

update-package Modifications to packages in the repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants