Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix scipy's solve_lyapunov and update testing #130

Merged
merged 3 commits into from
Dec 4, 2017
Merged

Conversation

arvoelke
Copy link
Owner

@arvoelke arvoelke commented Dec 4, 2017

Fixes #129.

setup.cfg Outdated
@@ -3,6 +3,7 @@ description-file = README.rst

[flake8]
exclude = _*.py,docs/*.py,build/*.py
ignore = E741
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suppressing:

nengolib/signal/discrete.py:132:9: E741 ambiguous variable name 'I'
nengolib/signal/lyapunov.py:181:5: E741 ambiguous variable name 'O'
nengolib/signal/lyapunov.py:223:8: E741 ambiguous variable name 'O'
nengolib/signal/realizers.py:87:9: E741 ambiguous variable name 'I'
nengolib/signal/system.py:682:9: E741 ambiguous variable name 'I'
nengolib/signal/tests/test_realizers.py:59:5: E741 ambiguous variable name 'I'
nengolib/signal/tests/test_system.py:208:5: E741 ambiguous variable name 'I'```

Repository owner deleted a comment from codecov-io Dec 4, 2017
@codecov-io
Copy link

codecov-io commented Dec 4, 2017

Codecov Report

Merging #130 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #130   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          28     28           
  Lines        1321   1324    +3     
  Branches      155    155           
=====================================
+ Hits         1321   1324    +3
Impacted Files Coverage Δ
nengolib/signal/lyapunov.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 54cf2fa...d6258f0. Read the comment docs.

@@ -3,6 +3,7 @@ description-file = README.rst

[flake8]
exclude = _*.py,docs/*.py,build/*.py
ignore = E226,E741
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E226 is another new error for whitespace around arithmetic operator...

@@ -337,11 +340,13 @@ def _normtail(sig, A, x, C):
x = _state_impulse(Phi, x0=B, k=N, delay=0) # eq (38)
abs_e = np.squeeze(abs(C.dot(x.T)))
x = x[:-1] # compensate for computing where thresholds crossed
abs_y = abs_y[:-1] # compensate for computing where thresholds crossed
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing this line gives a warning that I was ignoring before, due to abs_y[cross] having mismatched shapes between the boolean index cross and abs_y (latter had an extra dimension).

@arvoelke arvoelke merged commit d6258f0 into master Dec 4, 2017
@arvoelke arvoelke deleted the fix_solve_lyapunov branch December 4, 2017 22:19
@arvoelke arvoelke mentioned this pull request Dec 4, 2017
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants