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

Should complex schedules created with Sequence be automatically Shortened, if they have finite length? #66

Open
gruberchr opened this issue Apr 18, 2024 · 0 comments

Comments

@gruberchr
Copy link

Motivation and description

The generation of a sequence of finite-length schedules like, e.g.,

Sequence(1e-1 => 5, 5e-2 => 4, 3.4e-3 => 10)

would conceptually be a finite-length schedule as well. In this example the sequence would have a length of 19 iterations. In contrast the following sequence would be infinite:

Sequence(1e-1 => 5, 5e-2 => 4, 3.4e-3 => Inf)

However, both sequences behave identical AFAICS.

Moreover there is the concept of Shortened schedules, which throw a BoundsError if the end of the schedule is reached. Therefore it might be more intuitive if the first example would generate a Shortened schedule in contrast to the second example.

Possible Implementation

No response

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