- tensorstore.Schema.__eq__(self, other: Schema) bool
Compares with another
Schema
for equality based on theJSON representation
.The comparison is based on the JSON representation.
Example
>>> schema = ts.Schema(dtype=ts.int32, rank=3) >>> assert schema == schema >>> a, b = spec.copy(), spec.copy() >>> a.update(fill_value=42) >>> assert a == a >>> assert a != b