Skip to content

Correctly save a tThWidth of None#910

Merged
psavery merged 1 commit intomasterfrom
save-tth-width-none
Mar 27, 2026
Merged

Correctly save a tThWidth of None#910
psavery merged 1 commit intomasterfrom
save-tth-width-none

Conversation

@psavery
Copy link
Copy Markdown
Collaborator

@psavery psavery commented Mar 26, 2026

Overview

Before, if the tThWidth was set to None, which is a valid setting, saving the material and reloading it would reset it to the default value, rather than restoring the value of None.

This PR fixes the bug so that None is properly saved and restored, as it should be.

Affected Workflows

All workflows, but it probably doesn't affect most users (only a select few would set it to None).

Documentation Changes

None

Before, if the `tThWidth` was set to `None`, which is a valid setting,
saving the material and reloading it would reset it to the default value,
rather than restoring the value of `None`.

This PR fixes the bug so that `None` is properly saved and restored,
as it should be.

Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
@psavery psavery requested a review from saransh13 March 26, 2026 20:59
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 26, 2026

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 71.10%. Comparing base (177e3be) to head (5d9b311).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
hexrd/core/material/material.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #910   +/-   ##
=======================================
  Coverage   71.09%   71.10%           
=======================================
  Files         142      142           
  Lines       21856    21855    -1     
=======================================
  Hits        15539    15539           
+ Misses       6317     6316    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

@saransh13 saransh13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@psavery psavery merged commit ce9c0e6 into master Mar 27, 2026
10 checks passed
@psavery psavery deleted the save-tth-width-none branch March 27, 2026 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants