Skip to content

Commit

Permalink
STY: Fix typo (co{^n}vert)
Browse files Browse the repository at this point in the history
  • Loading branch information
shnizzedy committed Nov 18, 2024
1 parent de6657e commit 6830e3a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions nipype/utils/draw_gantt_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,13 +534,15 @@ def generate_gantt_chart(
# Read in json-log to get list of node dicts
nodes_list = log_to_dict(logfile)

# Only include nodes with timing information, and covert timestamps
# Only include nodes with timing information, and convert timestamps
# from strings to datetimes
nodes_list = [
{
k: datetime.datetime.strptime(i[k], "%Y-%m-%dT%H:%M:%S.%f")
if k in {"start", "finish"}
else i[k]
k: (
datetime.datetime.strptime(i[k], "%Y-%m-%dT%H:%M:%S.%f")
if k in {"start", "finish"}
else i[k]
)
for k in i
}
for i in nodes_list
Expand Down

0 comments on commit 6830e3a

Please sign in to comment.