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

Reconciliate re-sampling behavior #485

Merged
merged 5 commits into from
Jul 12, 2024

Conversation

digicosmos86
Copy link
Collaborator

Resolves #481. Please see the issue for details. We have written tests to ensure the behavior described in #481

@digicosmos86 digicosmos86 linked an issue Jul 8, 2024 that may be closed by this pull request
Copy link
Collaborator

@AlexanderFengler AlexanderFengler left a comment

Choose a reason for hiding this comment

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

This is good, just see one comment.

@@ -267,3 +267,14 @@ def test_override_default_link(caplog, data_ddm_reg):

assert "t" in caplog.records[0].message
assert "strange" in caplog.records[0].message


def test_resampling(data_ddm):
Copy link
Collaborator

Choose a reason for hiding this comment

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

we should put a not somewhere concerning the resulting behavior.
If I understand correctly, if you change sample_2 you automatically change model.traces?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I updated the return section of the sample() method and traces object to indicate that .sample() returns a reference to model.traces object, which stores the traces of the last call to .sample().

@digicosmos86 digicosmos86 merged commit 3558223 into main Jul 12, 2024
0 of 2 checks passed
@digicosmos86 digicosmos86 deleted the 481-reconciliate-re-sampling-behavior branch July 12, 2024 12:47
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.

Reconciliate re-sampling behavior
2 participants