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

include sampling_opts.json in exported csv zip with draws #90

Merged
merged 3 commits into from
Jun 26, 2024

Conversation

magland
Copy link
Collaborator

@magland magland commented Jun 26, 2024

Fixes #72

Had to add #samplingOpts data member to StanSampler class.

@@ -31,6 +31,7 @@ class StanSampler {
#paramNames: string[] = [];
#numChains: number = 0;
#samplingStartTimeSec: number = 0;
#samplingOpts: SamplingOpts | undefined = undefined; // the sampling options used in the last sample call
Copy link
Collaborator

Choose a reason for hiding this comment

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

Now that we're storing numChains is redundant, correct?

I think we should set this to defaultSamplingOpts rather than undefined, and remove numChains

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@WardBrian WardBrian merged commit 7b7ba5c into main Jun 26, 2024
1 check passed
@WardBrian WardBrian deleted the include-sampling-opts-in-csv-zip branch June 26, 2024 21:06
@magland magland restored the include-sampling-opts-in-csv-zip branch June 26, 2024 21:07
@WardBrian WardBrian deleted the include-sampling-opts-in-csv-zip branch July 1, 2024 16:27
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.

When downloading draws in zip, also save sampling_opts.json
2 participants