Skip to content

Polar channels - #338

Open
rozyczko wants to merge 11 commits into
developfrom
polar_channels
Open

Polar channels#338
rozyczko wants to merge 11 commits into
developfrom
polar_channels

Conversation

@rozyczko

Copy link
Copy Markdown
Member

Polarized Experiment and Channel Support:

  • Added properties and functions to the mock backend (Analysis.qml, Experiment.qml, Plotting.qml) for handling polarized experiments, including per-experiment polarization flags, channel counts, and methods for suggesting and loading polarized channels.
  • In the Python backend, introduced logic to handle polarized experiment data: new properties for polarization flags and channel counts, methods to flatten or expand per-channel data, and updated experiment data retrieval to support per-channel display and selection.

Magnetism and Calculation Engine Handling:

  • Added calculation engine properties and signals to the mock sample backend, including support for engines that can or cannot model magnetism, and methods for switching engines or enabling magnetism.
  • Implemented per-layer magnetism properties and setters in the mock backend for editing magnetic SLD and moment angle.
  • In the Python backend, improved error handling when switching calculation engines that do not support the sample's magnetism, emitting user-facing rejection messages instead of raising exceptions.

Plotting and Visualization Enhancements:

  • Added properties and functions in the mock plotting backend for managing spin channel visibility, magnetic SLD profiles, and spin asymmetry data, enabling the UI to simulate these new types of plots and controls.

API and Internal Logic Improvements:

  • Updated the Python backend's experiment data retrieval to allow for both flattened and per-channel data lists, supporting new charting requirements and ensuring backward compatibility for non-channel-aware consumers.
  • Introduced a utility in the Python backend to unwrap QML QJSValue objects for robust interop with QML/JS code..

@rozyczko rozyczko added [scope] enhancement Adds/improves features (major.MINOR.patch) magnetisation-support [priority] high Should be prioritized soon labels Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

magnetisation-support [priority] high Should be prioritized soon [scope] enhancement Adds/improves features (major.MINOR.patch)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant