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

API to get the absolute start time of a single phase #4

Open
alaurenzi opened this issue Jun 23, 2023 · 0 comments
Open

API to get the absolute start time of a single phase #4

alaurenzi opened this issue Jun 23, 2023 · 0 comments

Comments

@alaurenzi
Copy link

Even if this is outside the horizon.

Expected usage (by me)

phases = timeline.getPhases()  # gets all defined phases (even after horizon ends)
last_phase = phases[-1]
k0 = last_phase.getStartNode()  # the absolute start node of this phase, where 0 is the current horizon start
N = last_phase.getNNodes()  # the duration of this phase, in nodes

This way, the first node for which no phase is defined shall be k0 + N. This is useful per me

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