Skip to content

Deduplicate ExtendedLengyelOutputs construction and refine SOL state types. - #2468

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_982388152
Sep 18, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
test_982388152

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

Deduplicate ExtendedLengyelOutputs construction and refine SOL state types.

Both _process_single_guess and _run_single_solver duplicated post-processing and construction of ExtendedLengyelOutputs. Additionally, ExtendedLengyelState and DivertorSOL1D.seed_impurity_concentrations used scalar float types that caused type mismatches with ExtendedLengyelOutputs, requiring # pyrefly: ignore[bad-argument-type] suppressions.

Extract a helper _build_extended_lengyel_outputs in extended_lengyel_standalone.py to share post-processing and output creation across solvers. Update ExtendedLengyelState fields and DivertorSOL1D.seed_impurity_concentrations to jax.Array for consistent typing.

@copybara-service
copybara-service Bot force-pushed the test_982388152 branch 2 times, most recently from 69b984a to 40bcc2d Compare September 18, 2026 15:52
…types.

Both `_process_single_guess` and `_run_single_solver` duplicated post-processing and construction of `ExtendedLengyelOutputs`. Additionally, `ExtendedLengyelState` and `DivertorSOL1D.seed_impurity_concentrations` used scalar float types that caused type mismatches with `ExtendedLengyelOutputs`, requiring `# pyrefly: ignore[bad-argument-type]` suppressions.

Extract a helper `_build_extended_lengyel_outputs` in `extended_lengyel_standalone.py` to share post-processing and output creation across solvers. Update `ExtendedLengyelState` fields and `DivertorSOL1D.seed_impurity_concentrations` to `jax.Array` for consistent typing.

PiperOrigin-RevId: 983894694
@copybara-service
copybara-service Bot merged commit 642192f into main Sep 18, 2026
17 checks passed
@copybara-service
copybara-service Bot deleted the test_982388152 branch September 18, 2026 16:06
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