Skip to content

Commit

Permalink
🎨 next ≠ continue
Browse files Browse the repository at this point in the history
Ref nipy#3290 (comment), nipy#3290 (comment)

Co-authored-by: Mathias Goncalves <[email protected]>
  • Loading branch information
shnizzedy and mgxd committed Nov 18, 2024
1 parent b992883 commit fde3e74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nipype/utils/draw_gantt_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,14 @@ def calculate_resource_timeseries(events, resource):
try:
all_res += float(event[resource])
except ValueError:
next
continue
current_time = event["start"]
elif event["event"] == "finish":
if resource in event:
try:
all_res -= float(event[resource])
except ValueError:
next
continue
current_time = event["finish"]
res[current_time] = all_res

Expand Down

0 comments on commit fde3e74

Please sign in to comment.