This commit is contained in:
jan 2026-02-16 20:48:15 -08:00
commit ff8ca92963
13 changed files with 29 additions and 24 deletions

View file

@ -1,3 +1,4 @@
# ruff: noqa: PLC0415
import pytest
import numpy
from numpy.testing import assert_allclose

View file

@ -4,6 +4,7 @@ from numpy import pi
from ..label import Label
from ..repetition import Grid
from ..utils import annotations_eq
def test_label_init() -> None:
@ -39,9 +40,6 @@ def test_label_copy() -> None:
print(f"l1: string={l1.string}, offset={l1.offset}, repetition={l1.repetition}, annotations={l1.annotations}")
print(f"l2: string={l2.string}, offset={l2.offset}, repetition={l2.repetition}, annotations={l2.annotations}")
from ..utils import annotations_eq
print(f"annotations_eq: {annotations_eq(l1.annotations, l2.annotations)}")
assert l1 == l2