Skip to content

sync: align ThermoAdd with upstream .item() fix (PR #117) - #9

Merged
Jhawk414 merged 1 commit into
mainfrom
sync/thermo-add-item-fix
Sep 11, 2026
Merged

Jhawk414 merged 1 commit into
mainfrom
sync/thermo-add-item-fix

Conversation

@Jhawk414

Copy link
Copy Markdown
Owner

Summary

Brings pycycle/thermo/tabular/thermo_add.py in line with OpenMDAO/pyCycle#117, which fixed a NumPy 2.x / OpenMDAO 3.42+ incompatibility in ThermoAdd.compute().

This fork already carried the functional half of the fix (W_other_out[self.idx_compo] += W_other_mix.item()) from an earlier local commit addressing pyCycle issue OpenMDAO#116. The remaining line, outputs[f'{mix_name}:W'] = W_other_mix, wasn't actually broken (assigning to a shape-(1,) output doesn't hit the broadcast error), but upstream changed it for consistency in OpenMDAO#117. This PR applies the same .item() change here so the vendored file matches upstream's current style on both lines.

A broader audit for other upstream fixes accumulated since this fork diverged is left as follow-up, not included here.

Related Issues

Backwards incompatibilities

None

New Dependencies

None

…O#117

Aligns the vendored thermo_add.py with OpenMDAO#117, which
applied the NumPy 2.x scalar-extraction fix to both the output
assignment and the idx_compo accumulation. This repo already had the
functional fix on the accumulation line from an earlier local commit;
this brings the adjacent output line in line with upstream style.

Closes #6
@Jhawk414
Jhawk414 merged commit 387ea37 into main Sep 11, 2026
@Jhawk414
Jhawk414 deleted the sync/thermo-add-item-fix branch September 11, 2026 04:52
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.

Sync vendored pycycle/ with upstream fixes (e.g. PR #117 numpy2 compat)

1 participant