Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6830e3a

Browse files
STY: Fix typo (co{^n}vert)
1 parent de6657e commit 6830e3a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎nipype/utils/draw_gantt_chart.py‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -534,13 +534,15 @@ def generate_gantt_chart(
534534
# Read in json-log to get list of node dicts
535535
nodes_list = log_to_dict(logfile)
536536

537-
# Only include nodes with timing information, and covert timestamps
537+
# Only include nodes with timing information, and convert timestamps
538538
# from strings to datetimes
539539
nodes_list = [
540540
{
541-
k: datetime.datetime.strptime(i[k], "%Y-%m-%dT%H:%M:%S.%f")
542-
if k in {"start", "finish"}
543-
else i[k]
541+
k: (
542+
datetime.datetime.strptime(i[k], "%Y-%m-%dT%H:%M:%S.%f")
543+
if k in {"start", "finish"}
544+
else i[k]
545+
)
544546
for k in i
545547
}
546548
for i in nodes_list

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /