Skip to content

Conversation

AndrewSazonov
Copy link
Member

This PR introduces several enhancements and fixes to improve usability, consistency, and plotting capabilities:

  1. d-Spacing Support: Enables plotting with d-spacing on the x-axis for both time-of-flight (TOF) and constant-wavelength (CWL) experiments.
  2. Improved Calibration Handling: Allows zero as a valid value for the quadratic calibration parameter in TOF experiments.
  3. Refined Plotly Configuration: Hides unnecessary mode bar buttons in Plotly plots to streamline the UI.
  4. Context-Aware Output Formatting: Uses a pandas DataFrame for tabular output in Jupyter Notebooks, while falling back to print() in terminal environments.
  5. Unit Annotation: Adds explicit units (Ų) to the b_iso parameter in the AtomSite class for clarity and standardization.
  6. Category Key Consistency: Fixes several inconsistencies in internal category key naming to ensure uniform access and behavior.

AndrewSazonov and others added 30 commits July 10, 2025 17:12
Improves the display of Plotly figures in Jupyter notebooks by checking for IPython availability. Converts figures to HTML for better compatibility, avoiding warnings related to unknown MIME types.
Wraps Cryspy calculation in stderr redirection to prevent
warning messages from cluttering the output. This is a
temporary measure until Cryspy handles warnings more
efficiently.
@AndrewSazonov AndrewSazonov added this to the New API Stabilization milestone Aug 6, 2025
@AndrewSazonov AndrewSazonov added [scope] enhancement Adds/improves features (major.MINOR.patch) [priority] highest Urgent. Needs attention ASAP labels Aug 6, 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.
I have not yet checked if the tables look OK on windows, once the docs are generated I'll revisit this issue.

@AndrewSazonov
Copy link
Member Author

The docs at https://easyscience.github.io/diffraction-lib/tutorials have been regenerated and are ready for testing on Windows to verify correct display.

@AndrewSazonov AndrewSazonov merged commit 80c1d50 into develop Aug 8, 2025
@AndrewSazonov AndrewSazonov deleted the d-spacing branch August 14, 2025 10:53
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.

2 participants