Skip to content

fixed from #311, issue 2.1 - #364

Merged
rozyczko merged 2 commits into
developfrom
311-2-1-fixes
Nov 2, 2026
Merged

rozyczko merged 2 commits into
developfrom
311-2-1-fixes

Conversation

@rozyczko

Copy link
Copy Markdown
Member

Data consistency and type improvements:

  • Changed the representation of boolean fields in layer and assembly dictionaries from string values (e.g., 'True'/'False') to actual Python booleans, improving type safety and clarity (_from_layers_collection_to_list_of_dicts, _from_assemblies_collection_to_list_of_dicts, and related usages).
  • Updated the layers property and related functions to use more precise type annotations, reflecting the inclusion of boolean values.

Minimizer and Bayesian logic refactoring:

  • Refactored minimizer selection logic to simplify the list of available minimizers, clarify the handling of the Bayesian option, and ensure correct index mapping between GUI and backend.
  • Exposed VALID_INITIALIZERS for Bayesian sampling as a public constant and updated all references to use it, ensuring consistency between frontend options and backend validation.

Parameter filtering and display improvements:

  • Simplified experiment/model parameter filtering by using the explicit parameter['experiment'] field instead of helper methods, reducing indirection and potential errors.
  • Improved logic for generating parameter display names, especially for layer and magnetism parameters, by refining path handling and helper functions.

Plot rendering and result handling:

  • Updated Bayesian plot property methods to clarify that plots are rendered after sampling finishes, not on property read, and removed unnecessary on-demand rendering logic.

Other codebase cleanups:

  • Improved the add_new method in layers logic to return whether a new material was added, increasing transparency for the caller.
  • Added missing imports and clarified type annotations for better code clarity and reliability.

@rozyczko rozyczko added [scope] bug Bug report or fix (major.minor.PATCH) [priority] high Should be prioritized soon labels Oct 29, 2026
@rozyczko
rozyczko merged commit 0e73f6d into develop Nov 2, 2026
28 checks passed
@rozyczko
rozyczko deleted the 311-2-1-fixes branch November 2, 2026 11:09
rozyczko added a commit that referenced this pull request Nov 21, 2026
* fixed sample reordering for super/subphase #329 (#360)

* added uninstall action to the installer. Modified the docs. (#359)

* added uninstall action to the installer. Modified the docs.

* updated script

* updated script

* attempt to add some timeout for uninstallation

* cleaned up duplications and removed dead code (#361)

* second round of source cleanup (#362)

* improved constraints between models (#363)

* improved constraints between models

* PR review issues addressed

* updated CHANGELOG

* fixed from #311, issue 2.1 (#364)

* fixed from #311, issue 2.1

* more PR review fixes

* switch refl library to develop

* changes required for core 3.0 to work (#367)

* changes required for core 3.0 to work

* PR review fixes applied

* a useful run.py script added to start the app

* added Active parameters filter item

* added materials rename slot

* Update SLD charts on materials SLD update

* fixed log/q^4 display in analysis

* improvements to the project creation logic

* on demand/on action/on timer project save

* move the Autosave control to Advanced tab

* Fixes before 1.6 (#381)

* another round of fixes from gui testing

* polarized analysis parameters should only be shown for polarized sample

* update experiment on-hover coordinate tooltips

* windows signing is on

* fixed yaml path

* update for macos-15

* Added linear Y scale for profiles. Beautified the Y axis legend #378

* Default limits can now be changed with user notification. #374

* Progress bar 1.6 (#379)

* progress bar - initial stuff

* make the progress bar functionality independent on core's improved
cancellation branch

* Added cancel button to New Project creation widget #371

* update documentation

* fixed the error plot colors in experiment profile chart. #460

* SLD display now follows plot selection #462

* Exp tab legend symbols now correspond to what's shown #457

* same fix for analysis profile chart

* added Z-range controls to Sample and Analysis tabs #456

* plots get updated now #458 (#380)

* plots get updated now #458

* PR review fixes

* Address parameter display bug #365

* improved tooltips for dependent parameters #366

* cleaned up dead code

* fixes for model changes in analysis tab

* updated version to 1.6.0

* update the date
@rozyczko rozyczko mentioned this pull request Nov 21, 2026
rozyczko added a commit that referenced this pull request Nov 21, 2026
* fixed sample reordering for super/subphase #329 (#360)

* added uninstall action to the installer. Modified the docs. (#359)

* added uninstall action to the installer. Modified the docs.

* updated script

* updated script

* attempt to add some timeout for uninstallation

* cleaned up duplications and removed dead code (#361)

* second round of source cleanup (#362)

* improved constraints between models (#363)

* improved constraints between models

* PR review issues addressed

* updated CHANGELOG

* fixed from #311, issue 2.1 (#364)

* fixed from #311, issue 2.1

* more PR review fixes

* switch refl library to develop

* changes required for core 3.0 to work (#367)

* changes required for core 3.0 to work

* PR review fixes applied

* a useful run.py script added to start the app

* added Active parameters filter item

* added materials rename slot

* Update SLD charts on materials SLD update

* fixed log/q^4 display in analysis

* improvements to the project creation logic

* on demand/on action/on timer project save

* move the Autosave control to Advanced tab

* Fixes before 1.6 (#381)

* another round of fixes from gui testing

* polarized analysis parameters should only be shown for polarized sample

* update experiment on-hover coordinate tooltips

* windows signing is on

* fixed yaml path

* update for macos-15

* Added linear Y scale for profiles. Beautified the Y axis legend #378

* Default limits can now be changed with user notification. #374

* Progress bar 1.6 (#379)

* progress bar - initial stuff

* make the progress bar functionality independent on core's improved
cancellation branch

* Added cancel button to New Project creation widget #371

* update documentation

* fixed the error plot colors in experiment profile chart. #460

* SLD display now follows plot selection #462

* Exp tab legend symbols now correspond to what's shown #457

* same fix for analysis profile chart

* added Z-range controls to Sample and Analysis tabs #456

* plots get updated now #458 (#380)

* plots get updated now #458

* PR review fixes

* Address parameter display bug #365

* improved tooltips for dependent parameters #366

* cleaned up dead code

* fixes for model changes in analysis tab

* updated version to 1.6.0

* update the date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[priority] high Should be prioritized soon [scope] bug Bug report or fix (major.minor.PATCH)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant