LSST Applications g034a557a3c+dd8dd8f11d,g0afe43252f+b86e4b8053,g11f7dcd041+017865fdd3,g1cd03abf6b+8446defddb,g1ce3e0751c+f991eae79d,g28da252d5a+ca8a1a9fb3,g2bbee38e9b+b6588ad223,g2bc492864f+b6588ad223,g2cdde0e794+8523d0dbb4,g347aa1857d+b6588ad223,g35bb328faa+b86e4b8053,g3a166c0a6a+b6588ad223,g461a3dce89+b86e4b8053,g52b1c1532d+b86e4b8053,g7f3b0d46df+ad13c1b82d,g80478fca09+f29c5d6c70,g858d7b2824+293f439f82,g8cd86fa7b1+af721d2595,g965a9036f2+293f439f82,g979bb04a14+51ed57f74c,g9ddcbc5298+f24b38b85a,gae0086650b+b86e4b8053,gbb886bcc26+b97e247655,gc28159a63d+b6588ad223,gc30aee3386+a2f0f6cab9,gcaf7e4fdec+293f439f82,gcd45df26be+293f439f82,gcdd4ae20e8+70b5def7e6,gce08ada175+da9c58a417,gcf0d15dbbd+70b5def7e6,gdaeeff99f8+006e14e809,gdbce86181e+6a170ce272,ge3d4d395c2+224150c836,ge5f7162a3a+bb2241c923,ge6cb8fbbf7+d119aed356,ge79ae78c31+b6588ad223,gf048a9a2f4+40ffced2b8,gf0baf85859+b4cca3d10f,w.2024.30
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
lsst.afw.typehandling.testUtils.GenericMapTestBaseClass.ComplexStorable Class Reference
Inheritance diagram for lsst.afw.typehandling.testUtils.GenericMapTestBaseClass.ComplexStorable:
lsst.afw.typehandling.testUtils.GenericMapTestBaseClass.SimpleStorable lsst::afw::typehandling::Storable lsst::afw::table::io::Persistable

Public Member Functions

 __init__ (self, storage)
 
 __repr__ (self)
 
 __hash__ (self)
 
 __eq__ (self, other)
 

Protected Attributes

 _storage
 

Detailed Description

A subclass of Storable for testing purposes.

Definition at line 58 of file testUtils.py.

Constructor & Destructor Documentation

◆ __init__()

lsst.afw.typehandling.testUtils.GenericMapTestBaseClass.ComplexStorable.__init__ ( self,
storage )

Definition at line 61 of file testUtils.py.

61 def __init__(self, storage):
62 super().__init__()
63 self._storage = storage
64

Member Function Documentation

◆ __eq__()

lsst.afw.typehandling.testUtils.GenericMapTestBaseClass.ComplexStorable.__eq__ ( self,
other )
Warning: violates both substitution and equality symmetry!

Reimplemented from lsst.afw.typehandling.testUtils.GenericMapTestBaseClass.SimpleStorable.

Definition at line 71 of file testUtils.py.

71 def __eq__(self, other):
72 """Warning: violates both substitution and equality symmetry!
73 """
74 if self.__class__ == other.__class__:
75 return self._storage == other._storage
76 else:
77 return False
78
79 class NotAStorable:

◆ __hash__()

lsst.afw.typehandling.testUtils.GenericMapTestBaseClass.ComplexStorable.__hash__ ( self)

Reimplemented from lsst.afw.typehandling.testUtils.GenericMapTestBaseClass.SimpleStorable.

Definition at line 68 of file testUtils.py.

68 def __hash__(self):
69 return hash(self._storage)
70

◆ __repr__()

lsst.afw.typehandling.testUtils.GenericMapTestBaseClass.ComplexStorable.__repr__ ( self)

Reimplemented from lsst.afw.typehandling.testUtils.GenericMapTestBaseClass.SimpleStorable.

Definition at line 65 of file testUtils.py.

65 def __repr__(self):
66 return f"ComplexStorable({self._storage!r})"
67

Member Data Documentation

◆ _storage

lsst.afw.typehandling.testUtils.GenericMapTestBaseClass.ComplexStorable._storage
protected

Definition at line 63 of file testUtils.py.


The documentation for this class was generated from the following file: