File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -834,16 +834,28 @@ def __eq__(self, other):
834834 and jnp .array_equal (self .cd , other .cd )
835835 and self .center == other .center
836836 and (
837- jnp .array_equal (self .pv , other .pv )
838- or (self .pv is None and other .pv is None )
837+ (self .pv is None and other .pv is None )
838+ or (
839+ self .pv is not None
840+ and other .pv is not None
841+ and jnp .array_equal (self .pv , other .pv )
842+ )
839843 )
840844 and (
841- jnp .array_equal (self .ab , other .ab )
842- or (self .ab is None and other .ab is None )
845+ (self .ab is None and other .ab is None )
846+ or (
847+ self .ab is not None
848+ and other .ab is not None
849+ and jnp .array_equal (self .ab , other .ab )
850+ )
843851 )
844852 and (
845- jnp .array_equal (self .abp , other .abp )
846- or (self .abp is None and other .abp is None )
853+ (self .abp is None and other .abp is None )
854+ or (
855+ self .abp is not None
856+ and other .abp is not None
857+ and jnp .array_equal (self .abp , other .abp )
858+ )
847859 )
848860 )
849861
You can’t perform that action at this time.
0 commit comments