pysdic.SDICAnalysis.validate_unknowns#
- SDICAnalysis.validate_unknowns(unknowns)[source]#
Check that a
pysdic.SDICUnknownscan be used with the analysis: its optimized frames exist, its optimized transformations exist, are distinct objects, have parameters and are not locked.Called at the creation of the objects of a problem (
pysdic.SDICCorrelationTerm,pysdic.SDICTemporalRegularizationTerm,pysdic.SDICFixedParametrization) and by the methods on the vector of unknowns (pack_unknowns(), …).Note
The displacements of the optimized frames are not required here (they are the initial guess, needed by
pack_unknowns()).- Parameters:
unknowns (
pysdic.SDICUnknowns) – The unknowns to check.- Raises:
TypeError – If
unknownsis not apysdic.SDICUnknowns.IndexError – If a frame or a transformation does not exist.
ValueError – If a transformation has no parameters, is locked, or two entries are the same object.
- Return type:
None