Skip to content

Commit 28c06e3

Browse files
authored
Merge pull request #592 from petersontex/staging
Updated SICDWriter tests
2 parents 68b6083 + bd5fa5c commit 28c06e3

File tree

3 files changed

+378
-1
lines changed

3 files changed

+378
-1
lines changed

sarpy/io/complex/sicd_elements/blocks.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,6 +1090,12 @@ def get_array(self, dtype=numpy.float64) -> numpy.ndarray:
10901090
"""
10911091

10921092
return numpy.array(self._coefs, dtype=dtype)
1093+
1094+
def __eq__(self, other):
1095+
if not isinstance(other, Poly1DType):
1096+
return TypeError('Provided object is not an Poly1DType.')
1097+
return numpy.array_equal(self.Coefs, other.Coefs) and self.order1 == other.order1
1098+
10931099

10941100
@classmethod
10951101
def from_node(cls, node, xml_ns, ns_key=None, kwargs=None):

0 commit comments

Comments
 (0)