Skip to content

Commit ae7171e

Browse files
committed
Updating duration, actions_ti, and other features in Task.py based on the sequence graph:
- sequence graph simplified (without labels) and with a title that describes the actions that are done by each checkpoint (and/or end) node. - sequence graph calculates the total duration based on the thickest edge (largest duration) between the checkpoint nodes. - assigns the duration back to task self while also populating actions_ti relative starting time of each action in the self. + removed a zero
1 parent bd13d26 commit ae7171e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

famodel/irma/task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def __init__(self, actions, action_sequence, name, **kwargs):
7676
self.getSequenceGraph(action_sequence, plot=True) # this also updates duration
7777

7878
self.cost = sum(action.cost for action in self.actions.values())
79-
0
79+
8080
print(f"---------------------- Initializing Task '{self.name} ----------------------")
8181
print(f"Task '{self.name}' initialized with duration = {self.duration:.2f} h.")
8282
print(f"Task '{self.name}' initialized with cost = ${self.cost:.2f} ")

0 commit comments

Comments
 (0)