Skip to content

cleaned up duplications and removed dead code - #361

Merged
rozyczko merged 1 commit into
developfrom
source-cleanup
Oct 28, 2026
Merged

rozyczko merged 1 commit into
developfrom
source-cleanup

Conversation

@rozyczko

Copy link
Copy Markdown
Member

Experiment Ordering Refactor:

  • Introduced a single ordered_experiments function in logic/experiments.py to consistently retrieve experiments in UI order, replacing multiple local implementations across the codebase. All usages in analysis.py and fitting.py are updated to use this new function.

Parameter Handling and Naming:

  • Removed the fitableParameters property and its associated caching from analysis.py, consolidating parameter exposure under the enabledParameters property for clarity. The corresponding property name in the QML mock backend is also updated for consistency.

Code Cleanup:

  • Removed unused or outdated methods related to formatting values with uncertainties from helpers.py, as well as unnecessary imports (numpy, uncertainties).
  • Deleted the unused IO class and its formatMsg method from logic/helpers.py.

Minor Logic Correction:

  • Simplified parameter filter logic in parameters.py by removing special-case handling for certain parameter names.

@rozyczko rozyczko added [scope] maintenance Code/tooling cleanup, no feature or bugfix (major.minor.PATCH) [priority] high Should be prioritized soon labels Oct 28, 2026
@rozyczko
rozyczko merged commit 5176952 into develop Oct 28, 2026
28 checks passed
@rozyczko
rozyczko deleted the source-cleanup branch October 28, 2026 14:11
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] maintenance Code/tooling cleanup, no feature or bugfix (major.minor.PATCH)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant