Repository navigation
Conversation
Added a test to verify that system matrices are sparse arrays and check their shape.
Contributor
Author
|
I believe those tests failling are linked to PR 306 not been merge as current release still uses |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follows pathsim-rf issue #9.
SparseLinearDAE(dae.py) is moved fromcsc_matrix/csr_matrixtocsc_array/csr_arrayin a draft PR, since the sparse matrix classes are expected to be deprecated in SciPy. Elecsolver also has performed this transition.NetlistCircuitneeded to be updated accordingly.This PR is a draft because
csc_matrix,csr_matrixandcoo_matrixare not deprecated yet.Changes
pyproject.toml: raise the minimum toscipy>=1.8, the first release with thecsc/csr/cooarray classes.circuit.py(NetlistCircuit):_source_matrixbuilds the source columns withcsc_arrayand returns acsr_array.CandDare built ascsr_array.netlist_to_statespace.py:_solve_with_scipyfactorizes acsc_arrayinstead of acsc_matrix.tests/test_circuit.py: addtest_system_matrices_are_sparse_arrays, which checks that the system matrices of aNetlistCircuit(S1,S2,B,C,D,_P,_S2r) are sparse arrays.Test plan
pytestpasses, including theNetlistCircuitand netlist-to-statespace teststests/