-
Couldn't load subscription status.
- Fork 23
Open
Description
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()
FalseTODO
- fix identity test if possible
- fix equality operation
Metadata
Metadata
Assignees
Labels
No labels