Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent sanity checks with shared axes in dimensions #90

Open
DiamondJoseph opened this issue Oct 16, 2023 · 0 comments
Open

Inconsistent sanity checks with shared axes in dimensions #90

DiamondJoseph opened this issue Oct 16, 2023 · 0 comments

Comments

@DiamondJoseph
Copy link
Contributor

A Spec made by Zipping two Specs that contain the same axis raises an exception:

spec = (
        Static.duration(0.1)
        .concat(Static.duration(0.2))
        .zip(Line.bounded(DURATION, 0, 0, 2))
    )
    with pytest.raises(
        AssertionError, match=re.escape("Zipping would overwrite axes ['DURATION']")
    ):
        spec.calculate()

A Spec made by taking the Product of two Specs that contain the same axis does not:

spec = (
        Static.duration(0.1) * Line.bounded(DURATION, 0, 0, 2)
    )
    with pytest.raises(AssertionError):
        spec.calculate()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant