Skip to content

feat: add gems_craft_hybrid package for hybrid study parsing#245

Open
aoustry wants to merge 4 commits into
refacto/splitting_option_twofrom
feat/gems_craft_hybrid
Open

feat: add gems_craft_hybrid package for hybrid study parsing#245
aoustry wants to merge 4 commits into
refacto/splitting_option_twofrom
feat/gems_craft_hybrid

Conversation

@aoustry

@aoustry aoustry commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Port the hybrid GEMS/Antares Simulator schemas drafted on feature/submodule_gems_craft (AreaConnectionSchema, PortThermalCapacitySchema, HybridPortTypeSchema, HybridLibrarySchema, ThermalComponentSchema, ThermalCapacityConnectionSchema, HybridSystemSchema) onto the gems_craft/ gems_runner package split, as a new solver-independent sibling package gems_craft_hybrid (read/write only, no simulation support).

To support this, gems_craft's parse_yaml_library/parse_yaml_components/ load_input_system now accept an optional schema parameter (backward compatible), and gains write_yaml_library/write_yaml_system for round-trip I/O. LibrarySchema gains a version field. AreaConnectionsSchema/ area_connections were already present on the base SystemSchema and are reused as-is.

Port the hybrid GEMS/Antares Simulator schemas drafted on
feature/submodule_gems_craft (AreaConnectionSchema, PortThermalCapacitySchema,
HybridPortTypeSchema, HybridLibrarySchema, ThermalComponentSchema,
ThermalCapacityConnectionSchema, HybridSystemSchema) onto the gems_craft/
gems_runner package split, as a new solver-independent sibling package
gems_craft_hybrid (read/write only, no simulation support).

To support this, gems_craft's parse_yaml_library/parse_yaml_components/
load_input_system now accept an optional schema parameter (backward
compatible), and gains write_yaml_library/write_yaml_system for round-trip
I/O. LibrarySchema gains a version field. AreaConnectionsSchema/
area_connections were already present on the base SystemSchema and are
reused as-is.
Comment thread docs/user-guide/inputs.md Outdated
…rid-only

Document the version field under a new "Library YAML" section in
inputs.md and adjust the hybrid library section and changelog entry
so version is no longer described as a hybrid-specific addition.
Comment thread src/gems_craft/study/parsing.py Outdated
…brid

AreaConnectionsSchema/SystemSchema.area_connections was parsed but never
consumed by the standard resolve/solve pipeline in gems_craft or
gems_runner, so it belongs alongside HybridSystemSchema's other
Antares-interop-only fields rather than in the base package.

Addresses PR review comment on #245.
Comment thread docs/user-guide/inputs.md Outdated
@aoustry aoustry requested a review from Juliette-Gerbaux July 9, 2026 08:35
@aoustry

aoustry commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator Author

@tbittar to be merged after #244

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.

3 participants