Skip to content

FIX: Improved custom state variable support #365

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 6, 2021

Conversation

richardotis
Copy link
Collaborator

This PR makes two small improvements to better support the use of custom state variable objects.

One change silences a callables warning that would occur every time a custom state variable was used; this has been improved to only warn when expected state variables are missing. The other change relaxes an implicit assumption / bug that state variables would never be equal to zero (when calculating a percent change in value); now we detect this case and switch to an absolute difference.

@richardotis richardotis added the bug label Aug 4, 2021
@richardotis richardotis added this to the 0.9.1 milestone Aug 4, 2021
@richardotis richardotis requested a review from bocklund August 4, 2021 21:09
@codecov
Copy link

codecov bot commented Aug 4, 2021

Codecov Report

Merging #365 (a931c10) into develop (f060c23) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #365   +/-   ##
========================================
  Coverage    89.87%   89.87%           
========================================
  Files           44       44           
  Lines         4345     4345           
========================================
  Hits          3905     3905           
  Misses         440      440           
Impacted Files Coverage Δ
pycalphad/codegen/callables.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f060c23...a931c10. Read the comment docs.

@richardotis richardotis merged commit f41c315 into pycalphad:develop Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants