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

generate_gantt_chart fails on logfile #2982

Closed
@SiegfriedWagner

Description

Summary

generate_gantt_chart fails on generating charts based on profiler log file

Actual behavior

Exception occurs:

Traceback (most recent call last):
File "./profiler_chart.py", line 2, in
generate_gantt_chart('/mnt/connectomics/profiler.log', cores=4)
File "/home/siegfriedwagner/.local/lib/python3.6/site-packages/nipype-1.2.0-py3.6.egg/nipype/utils/draw_gantt_chart.py", line 507, in generate_gantt_chart
duration = (last_node['finish'] - start_node['start']).total_seconds()
TypeError: unsupported operand type(s) for -: 'str' and 'str'

Expected behavior

Graph generates flawlessly

How to replicate the behavior

Run script presented bellow on log from https://gist.github.com/SiegfriedWagner/891bb05bff3cb8224f23915634672a83

Script/Workflow details

from nipype.utils.draw_gantt_chart import generate_gantt_chart
generate_gantt_chart('profiler.log', cores=4)

Platform details:

{'commit_hash': 'a0f756d1c',
 'commit_source': 'installation',
 'networkx_version': '2.3',
 'nibabel_version': '2.4.1',
 'nipype_version': '1.2.0',
 'numpy_version': '1.17.0',
 'pkg_path': '/home/siegfriedwagner/.local/lib/python3.6/site-packages/nipype-1.2.0-py3.6.egg/nipype',
 'scipy_version': '1.3.0',
 'sys_executable': '/usr/bin/python',
 'sys_platform': 'linux',
 'sys_version': '3.6.8 (default, Jan 14 2019, 11:02:34) \n'
 '[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]]',
 'traits_version': '5.1.2'}

Execution environment

Choose one

  • My python environment outside container

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

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