Skip to content

tf should copy its arguments; instead they are mutated #112

Description

@roryyorke
import numpy as np
import control

num = [[[1]]]
den = [[[1,1]]]

print('num before',num)
g = control.tf(num,den)
print('num after',num)

outputs

num before [[[1]]]
num after [[array([1])]]

expect num to be unchanged.

Activity

  1. self-assigned this
    on Feb 10, 2017
  2. murrayrm commented on Dec 30, 2017

    @murrayrm
    Member

    Fixed in PR #135.

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

Metadata

Metadata

Assignees

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