Skip to content

sweep: warn on unapplied parameters; add PyPI keywords#137

Merged
jdmartinez24 merged 1 commit into
mainfrom
feature/sweep-skipped-param-feedback
Jul 2, 2026
Merged

sweep: warn on unapplied parameters; add PyPI keywords#137
jdmartinez24 merged 1 commit into
mainfrom
feature/sweep-skipped-param-feedback

Conversation

@paxcalpt

@paxcalpt paxcalpt commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Two small, self-contained improvements bundled together.

Sweep feedback (task #73)

set_sweep_parameters previously accepted several parameters that were silently discarded (peptide_motif hit a dead pass, minimal_distance had no handling at all, unknown kwargs vanished). It now:

  • prints which parameters are set for the sweep, and
  • warns when a parameter is provided but not applied (peptide_motif, minimal_distance, or any unknown kwarg).

Behaviour is otherwise unchanged — this only surfaces what is being swept vs ignored, matching the existing print()-based sweep messaging.

PyPI keywords (task #10)

Adds project.keywords to pyproject.toml (microscopy, simulation, super-resolution, SMLM, STED, fluorescence, labeling, structural-biology) for PyPI discoverability.

Tests

Adds three fast unit tests to tests/test_sweep_generator_state.py (applied-reported, ignored-warned, silent-when-empty). All passing locally.

set_sweep_parameters now reports which parameters are set for the sweep
and warns when a parameter is provided but not applied (peptide_motif,
minimal_distance, or unknown kwargs), instead of silently discarding it.

Also add project.keywords to pyproject.toml for PyPI discoverability.
Copilot AI review requested due to automatic review settings July 2, 2026 14:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This pull request improves sweep-parameter transparency in sweep_generator.set_sweep_parameters by reporting which provided parameters are actually applied vs ignored, and enhances PyPI discoverability by adding project keywords.

Changes:

  • Report applied sweep parameters and print a warning for provided-but-ignored parameters (including unknown **kwargs).
  • Add unit tests covering applied reporting, ignored warning behavior, and silence when no parameters are provided.
  • Add keywords metadata to pyproject.toml for PyPI indexing.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
tests/test_sweep_generator_state.py Adds tests validating the new stdout reporting/warning behavior of set_sweep_parameters.
src/vlab4mic/sweep_generator.py Tracks provided args and prints applied parameters plus warnings for ignored/unknown inputs.
pyproject.toml Adds project.keywords list to improve PyPI package discoverability.

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

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.43%. Comparing base (4a9452a) to head (44414b9).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #137      +/-   ##
==========================================
+ Coverage   68.30%   68.43%   +0.12%     
==========================================
  Files          28       28              
  Lines        5096     5103       +7     
==========================================
+ Hits         3481     3492      +11     
+ Misses       1615     1611       -4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jdmartinez24 jdmartinez24 merged commit 5d17307 into main Jul 2, 2026
9 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.

4 participants