Skip to content

Modernize Python #3

@mrkrause

Description

@mrkrause

run.py and run_RmpRiTau.py both contain some obsolete Python.

Specifically:

  • numpy.savetxt expects an array_like object, but is instead called with two 1D arrays, zipped together. This no longer works in Python 3 because it returns a zip object, rather than a list that can be coerced back into an array. Consequently, both run.py and run_RmpRiTau.py crash when writing data to a file.

  • The plotting code in both files calls set_window_title, which is slated for removal in the next release of matplotlib.

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