Skip to content

feat: accept a name matching the ParameterSet's own in set_structure - #21

Open
cadenmyers13 wants to merge 1 commit into
diffpy:mainfrom
cadenmyers13:set-structure-matching-name
Open

cadenmyers13 wants to merge 1 commit into
diffpy:mainfrom
cadenmyers13:set-structure-matching-name

Conversation

@cadenmyers13

Copy link
Copy Markdown
Contributor

set_structure in basepdfgenerator.py raised for any name given with a ParameterSet. It now raises only for a different name. Adds a matching-name case to test_set_structure_with_parameter_set and renames the error test to test_set_structure_with_parameter_set_and_other_name.

set_structure in basepdfgenerator.py raised for any name given with a
ParameterSet. It now raises only for a different name, so it behaves like
diffpy.cmirietveld's set_structure and every generator is set up the same
way. Adds a matching-name case to test_set_structure_with_parameter_set
and renames the error test to test_set_structure_with_parameter_set_and_other_name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.31%. Comparing base (64ab38d) to head (12e154a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #21   +/-   ##
=======================================
  Coverage   97.31%   97.31%           
=======================================
  Files           6        6           
  Lines         373      373           
=======================================
  Hits          363      363           
  Misses         10       10           
Files with missing lines Coverage Δ
tests/test_generators.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
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.

1 participant