force both materials to decay on absorption#1918
Conversation
|
This might just need to update the expected responses for tests to allow it to pass (?) |
|
Seems like the two failing tests are these:
Which indicates that we should be good to change this test.
|
|
The UnitValue test seems to be failing because it looks like you accidentally took out the unit-value averaging lines of the absorb function. Adding those back now and then it should (hopefully) work! |
|
PR submitted to @gonuke's branch which, if accepted, should come here and hopefully tests pass after that. |
|
@gonuke has brought up some good points about more careful testing that needs to happen now that this change has been implemented. They are:
We (likely me) should look into adding these tests to improve our coverage. |
|
Checks have been added to my PR into @gonuke's PR addressing the above. Hopefully those go through, and this can move forward, but obviously if I did something funky let me know and I can address it. |
…ntext before setting common_decay_time to the context time
…ntext before setting common_decay_time to the context time
… sim time, untracked materials can only absorb other untracked materials which are not decayed ahead of them, added checks to confirm all this
…is the right thing to do
Coverage Report for CI Build 28475723402Warning No base build found for commit Coverage: 36.831%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsRequires a base build to compare against. How to fix this → Coverage Stats
💛 - Coveralls |
Downstream Build Status Report - 0ed2078 - 2026-06-30 11:50:13 -0500Build
|
|
Now that gone/cyclus/#2 has been merged, I THINK the main thing on this is fixing the Cycamore tests. Let me know if you see other stuff that needs addressing. Another thought I was having while making the tests work yesterday was that when we decay outside of a context we give it a number of months to decay (not time steps, since it's not in a context). It MIGHT make more sense to do it in seconds and then make people who want months use |
… decay mode, which fixes the failing cycamore unit tests
|
Okay, the giant wave of failing Cycamore tests I saw previously seems to have been related to the |
|
Replaced by #1966 |
Summary of Changes
Force both materials involved in an absorption to decay before absorption.
Design Notes
Previous behavior would result in dubious decay times for materials following absorption
Importantly, this PR introduces a new constraint on material decay:
Check the box if your change does not break any of the following:
Related CEPs and Issues
Fixes #1841
Associated Developers
@dean-krueger
Testing and Validation
Reviewers, please refer to the Cyclus Guide for Reviewers.