Skip to content

Modernize Python #3

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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