Skip to content

CHP Expansion - #726

Merged
Bill-Becker merged 28 commits into
masterfrom
chp-expand
Aug 11, 2026
Merged

CHP Expansion#726
Bill-Becker merged 28 commits into
masterfrom
chp-expand

Conversation

@Bill-Becker

@Bill-Becker Bill-Becker commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

See REopt.jl PR:

Please check if the PR fulfills these requirements

  • CHANGELOG.md is updated
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • Any new Django model inputs have also been added to job/test/posts/all_inputs_test.json

@Bill-Becker Bill-Becker changed the title Chp expand CHP Expansion Aug 3, 2026
Bill-Becker and others added 16 commits August 4, 2026 07:36
Align julia_src/Manifest.toml with the uncommitted chp-expand update for REopt.jl PR #608.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…updates

- validators.py: Check for duplicate names within CHP list inputs and raise validation error if found. Prevents silent data loss from name collisions. - process_results.py: Remove unsafe fallback to bulk-update all CHP rows when name is missing. Require explicit name for each CHP in list updates to ensure we target the correct database row.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…e PVs

http.jl: Include ':name' in inputs_with_defaults_from_julia_chp and inputs_with_defaults_from_julia_pv arrays. This allows the API to identify which CHP/PV each set of defaults belongs to. - For PV: Handle both single PV (dict) and multiple PV (list) cases when extracting defaults from Julia. Previously only pvs[1] was used, causing other PVs to never receive defaults.

process_results.py: Update PV handling to match CHP pattern - support both dict and list formats for PV updates. Each list item must have a 'name' field to identify the target PV row.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Bill-Becker
Bill-Becker marked this pull request as ready for review August 11, 2026 04:41
@Bill-Becker
Bill-Becker merged commit c4ce947 into master Aug 11, 2026
1 check passed
@Bill-Becker
Bill-Becker deleted the chp-expand branch August 11, 2026 18:46
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