🐛 PdosWorkChain: thread settings overrides to dos/projwfc - #1276
Merged
Conversation
The `get_builder_from_protocol` method populated the `code`, `parameters`
and `metadata` inputs of the `dos` and `projwfc` namespaces, but never the
`settings` input. As a result, a `settings` override (for example
`{'projwfc': {'settings': {'CMDLINE': ['-npool', '4']}}}`) was silently
dropped and never reached the builder.
Set `builder.dos.settings` and `builder.projwfc.settings` from the merged
protocol inputs when a `settings` override is provided.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LGsT8YPFW5jT93FPWojAYf
t-reents
approved these changes
Jul 23, 2026
t-reents
left a comment
Member
There was a problem hiding this comment.
Thanks @elinscott! Changes look fine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
PdosWorkChain.get_builder_from_protocolnever populated thesettingsof thedosandprojwfcnamespaces. As a result anysettingsoverride for those namespaces — for exampleoverrides={'projwfc': {'settings': {'CMDLINE': ['-npool', '4']}}}— was silently dropped and never reached the builder, so it had no effect on the launchedDosCalculation/ProjwfcCalculation.Changes
Both namespaces had the identical gap, since
DosCalculationandProjwfcCalculationboth derive fromNamelistsCalculation, which exposes thesettingsport. The fix setsbuilder.dos.settingsandbuilder.projwfc.settingsfrom the merged protocol inputs whenever asettingsoverride is provided, matching the way the siblingcode/parameters/metadatainputs are already threaded.Tests
Added
test_settings_overridestotests/workflows/protocols/test_pdos.py, which passessettingsoverrides for both thedosandprojwfcnamespaces and asserts they land on the builder. The test fails on the pre-fix code (thesettingsinput is absent) and passes with the fix.