DiamondLightSource / DiamondLightSource/pytac

Define __eq__ method on elements

Open
#48 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7
Forks
5
PR merge metrics
No merged PRs in 30d

Description

I have elements that come from different instances of the lattice, but otherwise represent the same element. When I test for equality of these elements they have different memory address and so the test fails. As they do actually represent the same lattice element I would expect the tests to pass.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.