Skip to content

Update the shipped BlockConfig files to the current format - #110

Merged
davide-f merged 3 commits into
SPSUnipi:mainfrom
dmeoli:fix/blockconfig-format
Sep 2, 2026
Merged

Update the shipped BlockConfig files to the current format#110
davide-f merged 3 commits into
SPSUnipi:mainfrom
dmeoli:fix/blockconfig-format

Conversation

@dmeoli

@dmeoli dmeoli commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

SMS++ changed the textual format of a BlockConfig: after the differential flag it now reads a version number, and the Configuration for the structure comes first. The ten files shipped in pysmspp/data/configs are still in the old one, so SMS++ rejects each of them with

error BlockConfig::load: this is a BlockConfig in the old format, which had no version number after the differential flag; the structure Configuration is now the first one, see BlockConfig in deserialize

and carries on without it, which means that passing them has had no effect at all: what they are there to select, the anchor constraints of a TwoStageStochasticBlock or the network formulation of a DCNetworkBlock, was never applied.

This updates all of them, TSSBlock/TSSBCfg.txt and the nine under SDDPBlock/, leaving their content as it was: the only change is the version number and the empty structure slot. The result is textually identical to the same files as they are in the SMS++ test suite, which was converted when the format changed.

Checked with the SMS++ tools: the error is gone for every one of them, the option is now actually read, and the optimum of a two-stage instance solved with TSSBCfg.txt is unchanged.

@dmeoli dmeoli changed the title Update the TwoStageStochasticBlock BlockConfig to the current format Update the shipped BlockConfig files to the current format Aug 28, 2026

@davide-f davide-f left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello! Thanks, just a minor comment and then ready to merge with thanks!

Comment thread docs/release_notes.md Outdated
### Minor Changes and Bug Fixes

*
* Update the shipped `BlockConfig` files to the current format: SMS++ now reads a version number after the differential flag and the structure `Configuration` first, so the shipped file was rejected, with the `-B` option silently having no effect.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, add link to the PR: follow template

@davide-f davide-f left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Approving and merging

@davide-f
davide-f merged commit 9f5ea56 into SPSUnipi:main Sep 2, 2026
16 checks passed
@dmeoli
dmeoli deleted the fix/blockconfig-format branch September 7, 2026 14:41
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.

2 participants