Skip to content

implement equality operator for wrapped classes #13

@pavoljuhas

Description

@pavoljuhas

Crystal methods return wrappers to the same C++ instances, but they don't test for identity not equality:

>>>  nacl = loadObjCrystCrystal('NaCl.cif')
>>>  nacl.GetScatterer(0) is nacl.GetScatterer(0)
False
>>>  nacl.GetScatterer(0) == nacl.GetScatterer(0)
False
>>>  a = nacl.GetScatterer(0)
>>>  a.GetScatteringPower() is a.GetScatteringPower()
False
>>>  a.GetScatteringPower() == a.GetScatteringPower()
False

TODO

  • fix identity test if possible
  • fix equality operation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions