nook.repair¶
- nook.repair(states, max_passes=50)[source]¶
Correct transcription errors that the mass surface can confirm.
Returns the repaired survey and the list of changes. Repaired values are marked in
NuclideSummary.repaired, so a figure or a downstream calculation can tell which numbers are no longer the file’s.Candidates are considered only for values already participating in a loop that fails to close, and only one repair is accepted per pass – the one that closes the most loops. Errors cluster (eleven of
ensdf.112’s Q records are wrong at once) so several passes are needed before the surviving failures can be attributed.Nothing is repaired on the strength of looking wrong. If no loop constrains a value, it is left alone and remains flagged by
inconsistencies().