What if preconditions are not met?
nWe could set the value to a default value if it doesn’t meet criteria.  But this isn’t entirely satisfactory, since it treats an error condition as a normal, expected, occurrence.
nUsually an error is returned if the preconditions are not met.
uCSCI.utilities package contains functionality for doing this.