Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: multichain does not use any init file besides the first #1191

Merged
merged 2 commits into from
Aug 28, 2023

Conversation

WardBrian
Copy link
Member

Submisison Checklist

  • Run tests: ./runCmdStanTests.py src/test
  • Declare copyright holder and open-source license: see below

Summary:

Currently, if you are using num_chains with initialization files for each chain, only the first is actually used. This was found by investigating a (similar, but unique) bug in cmdstanpy: stan-dev/cmdstanpy#687

The bug ultimately comes down to one character, files_1 vs files_i, and has existed since the original implementation in #987

Intended Effect:

Allow multiple chains to use separate init files

How to Verify:

New test added

Side Effects:

This also unifies the behavior of init files with the outputs etc, such that the chain ID is used rather than hardcoding numbers started at 1.

Documentation:

Copyright and Licensing

Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company):

By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:

@WardBrian WardBrian added the bug label Aug 28, 2023
@WardBrian WardBrian mentioned this pull request Aug 28, 2023
27 tasks
Copy link
Member

@mitzimorris mitzimorris left a comment

Choose a reason for hiding this comment

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

good catch!

@WardBrian WardBrian merged commit 0b6d67b into develop Aug 28, 2023
1 check passed
@WardBrian WardBrian deleted the fix/init-multichain-bug branch August 28, 2023 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants