Skip to content

Resolves issue with multi-phase fitting #57

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

Merged
merged 2 commits into from
Jul 2, 2025
Merged

Conversation

AndrewSazonov
Copy link
Member

This PR resolves an issue with multi-phase fitting and introduces a new example to demonstrate the functionality.

@AndrewSazonov AndrewSazonov added [scope] bug Bug report or fix (major.minor.PATCH) [priority] highest Urgent. Needs attention ASAP labels Jul 2, 2025
@AndrewSazonov AndrewSazonov added this to the New API Stabilization milestone Jul 2, 2025
Copy link
Member

@rozyczko rozyczko left a comment

Choose a reason for hiding this comment

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

looks good.

@@ -117,7 +122,8 @@ def _recreate_cryspy_dict(self, sample_model: SampleModels, experiment: Experime
Returns:
The updated Cryspy dictionary.
"""
cryspy_dict = copy.deepcopy(self._cryspy_dicts[experiment.name])
combined_name = f"{sample_model.name}_{experiment.name}"
cryspy_dict = copy.deepcopy(self._cryspy_dicts[combined_name])

Copy link
Member

Choose a reason for hiding this comment

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

So this is the main change - indexing cryspy_dict with properly defined combined name.
Good catch.

@AndrewSazonov AndrewSazonov merged commit 1ffc2ad into develop Jul 2, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[priority] highest Urgent. Needs attention ASAP [scope] bug Bug report or fix (major.minor.PATCH)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants