Thanks to visit codestin.com
Credit goes to github.com

Skip to content

labscript_utils.dedent is clobbered in labscript.py #78

Closed
@zakv

Description

@zakv

In labscript.py, dedent() is imported form labscript_utils before the from pylab import * line. Unfortunately that wildcard import brings in matplotlib.cbook.dedent() which overwrites dedent().

Calling matplotlib.cbook.dedent() gives the warning MatplotlibDeprecationWarning: The dedent function was deprecated in Matplotlib 3.1 and will be removed in 3.3. Use inspect.cleandoc instead so it seems that it will be removed in the future and this issue will go away. Still, given that it's an easy fix I'll just issue a PR to reorder the imports and fix the issue now.

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