Skip to content

Commit

Permalink
docs: Add note about explicit comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Aug 13, 2024
1 parent 464c0dc commit 2b6bc8c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/qibolab/components/configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,13 @@ class AcquisitionConfig(Model):
signal."""

def __eq__(self, other) -> bool:
"""Explicit configuration equality."""
"""Explicit configuration equality.
.. note::
the expliciti definition is required in order to solve the ambiguity about
the arrays equality
"""
return (
(self.delay == other.delay)
and (self.smearing == other.smearing)
Expand Down

0 comments on commit 2b6bc8c

Please sign in to comment.