Skip to content

Write Model Updates#14

Draft
alvaradoo wants to merge 5 commits intolpsmodsimteam:masterfrom
alvaradoo:write_model_updates
Draft

Write Model Updates#14
alvaradoo wants to merge 5 commits intolpsmodsimteam:masterfrom
alvaradoo:write_model_updates

Conversation

@alvaradoo
Copy link
Contributor

@alvaradoo alvaradoo commented Jan 9, 2026

This PR makes changes to AHP's __write_model function to align it with SST's 15.1+ expected JSON parser. The two major changes this PR tackles follow:

  1. For nonlocal links, it specifically makes the "left" component the local one, and formats the "right" format as expected.
  2. Comments out and adds TODOs to lines of code causing duplication and parsing errors with SST 15.1+

Signed-off-by: Oliver Alvarado Rodriguez <oliver.alvarado-rodriguez@hpe.com>
…arams if they are None

Signed-off-by: Oliver Alvarado Rodriguez <oliver.alvarado-rodriguez@hpe.com>
@alvaradoo
Copy link
Contributor Author

I can't assign a reviewer, so manually pinging @researcherben here for comments.

Signed-off-by: Oliver Alvarado Rodriguez <oliver.alvarado-rodriguez@hpe.com>
@alvaradoo
Copy link
Contributor Author

I cleaned up the code a bit and added a new commit to explain some of my changes. No rush at taking a look, but just pinging you again to make you aware @researcherben. Thanks!

Signed-off-by: Oliver Alvarado Rodriguez <oliver.alvarado-rodriguez@hpe.com>
@alvaradoo
Copy link
Contributor Author

alvaradoo commented Feb 10, 2026

I reverted a "fix" that removed "type" from being written to the nested "params". This "fix" is no longer needed since the issue is with the SST JSON parser and not AHP itself. I reverted it. The SST issue documenting the bug can be found here: sstsimulator/sst-core#1554.

This also reverts the same change applied to build_model seen below.

Signed-off-by: Oliver Alvarado Rodriguez <oliver.alvarado-rodriguez@hpe.com>
@alvaradoo alvaradoo marked this pull request as draft February 10, 2026 16:21
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