Skip to content

Add Support for Excluded Regions in Fitting and Visualization #58

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 22 commits into from
Jul 5, 2025

Conversation

AndrewSazonov
Copy link
Member

This PR introduces support for defining and handling excluded regions during data analysis.

Key changes include:

  • Implemented logic to exclude specific data points from fitting calculations.
  • Extended Collection with parent handling and on_item_added callback.
  • Improved tutorial notebooks to demonstrate usage of excluded regions.
  • Minor cleanup and formatting improvements throughout related components.

Moves the logic for updating excluded points from minimization to ExcludedRegions, ensuring better modularity.
Optimizes the process of updating the pattern's excluded points
by avoiding unnecessary resets with each new excluded region.

Initializes pattern's excluded points with default values on data load.
@AndrewSazonov AndrewSazonov added [scope] enhancement Adds/improves features (major.MINOR.patch) [priority] highest Urgent. Needs attention ASAP labels Jul 5, 2025
@AndrewSazonov AndrewSazonov added this to the New API Stabilization milestone Jul 5, 2025
Rounds x-values to 4 decimal places to align data size
Replaces small uncertainty values with 1.0 to prevent
failures in minimization algorithms
@AndrewSazonov AndrewSazonov merged commit c739562 into develop Jul 5, 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] enhancement Adds/improves features (major.MINOR.patch)
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant