LSST Applications g0d33ba9806+b932483eba,g0fba68d861+d53f2a615d,g1e78f5e6d3+1e869f36eb,g1ec0fe41b4+f536777771,g1fd858c14a+d5f4961c99,g35bb328faa+fcb1d3bbc8,g4af146b050+2e821d8f6b,g4d2262a081+b02c98aa00,g53246c7159+fcb1d3bbc8,g5a012ec0e7+b20b785ecb,g60b5630c4e+b932483eba,g67b6fd64d1+4086c0989b,g78460c75b0+2f9a1b4bcd,g786e29fd12+cf7ec2a62a,g7b71ed6315+fcb1d3bbc8,g87b7deb4dc+7d8c31d03d,g8852436030+a639f189fc,g89139ef638+4086c0989b,g9125e01d80+fcb1d3bbc8,g94187f82dc+b932483eba,g989de1cb63+4086c0989b,g9f33ca652e+898eabdf38,g9f7030ddb1+b068313d7a,ga2b97cdc51+b932483eba,ga44b1db4f6+2bd830756e,gabe3b4be73+1e0a283bba,gabf8522325+fa80ff7197,gb1101e3267+f4f1608365,gb58c049af0+f03b321e39,gb89ab40317+4086c0989b,gcf25f946ba+a639f189fc,gd6cbbdb0b4+af3c3595f5,gd9a9a58781+fcb1d3bbc8,gde0f65d7ad+4078fef7e5,ge278dab8ac+d65b3c2b70,ge410e46f29+4086c0989b,gf67bdafdda+4086c0989b,gfe06eef73a+6e83fc67a4,v29.0.0.rc5
LSST Data Management Base Package
|
Public Member Functions | |
checkRoundTrip (self, amap, poslist, rtol=1e-05, atol=1e-08) | |
checkBasicSimplify (self, amap) | |
checkMappingPersistence (self, amap, poslist) | |
checkMemoryForCompoundObject (self, obj1, obj2, cmpObj, isSeries) | |
assertObjectsIdentical (self, obj1, obj2, checkType=True) | |
checkCopy (self, obj) | |
checkPersistence (self, obj, typeFromChannel=None) | |
|
inherited |
Assert that two astshim objects are identical. Identical means the objects are of the same class (if checkType) and all properties are identical (including whether set or defaulted).
Definition at line 14 of file test.py.
astshim.test.MappingTestCase.checkBasicSimplify | ( | self, | |
amap ) |
Check basic simplfication for a reversible mapping Check the following: - A compound mapping of a amap and its inverse simplifies to a unit amap. - A compound mapping of a amap and a unit amap simplifies to the original amap.
Definition at line 131 of file test.py.
|
inherited |
Check that an astshim object can be deep-copied
Definition at line 26 of file test.py.
astshim.test.MappingTestCase.checkMappingPersistence | ( | self, | |
amap, | |||
poslist ) |
Check that a mapping gives identical answers to unpersisted copy poslist is a list of input position for a forward transform (if it exists), or the inverse transform (if not). A numpy array with shape [nAxes, num points] or collection that can be cast to same Checks each direction, if present. However, for generality, does not check that the two directions are inverses of each other; call checkRoundTrip for that. Does everything checkPersistence does, so no need to call both.
Definition at line 171 of file test.py.
astshim.test.MappingTestCase.checkMemoryForCompoundObject | ( | self, | |
obj1, | |||
obj2, | |||
cmpObj, | |||
isSeries ) |
Check the memory usage for a compoundObject obj1: first object in compound object obj2: second object in compound object cmpObj: compound object (SeriesMap, ParallelMap, CmpMap or CmpFrame) isSeries: is compound object in series? None to not test (e.g. CmpFrame)
Definition at line 215 of file test.py.
|
inherited |
Check that an astshim object can be persisted and unpersisted @param[in] obj Object to be checked @param[in] typeFromChannel Type of object expected to be read from a channel (since some thin wrapper types are read as the underlying type); None if the original type Check persistence using Channel, FitsChan (with native encoding, as the only encoding compatible with all AST objects), XmlChan and pickle.
Definition at line 54 of file test.py.
astshim.test.MappingTestCase.checkRoundTrip | ( | self, | |
amap, | |||
poslist, | |||
rtol = 1e-05, | |||
atol = 1e-08 ) |
Check that a mapping's reverse transform is the opposite of forward amap is the mapping to test poslist is a list of input position for a forward transform; a numpy array with shape [nin, num points] or collection that can be cast to same rtol is the relative tolerance for numpy.testing.assert_allclose atol is the absolute tolerance for numpy.testing.assert_allclose
Definition at line 93 of file test.py.