Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid using element equality for finding elements in circuit
Note the following change: Before: ```julia julia> R = resistor(1000); circ = Circuit(); julia> add!(circ, R) Symbol("##296") julia> add!(circ, R) Symbol("##296") julia> ACME.nb(circ) 1 ``` After: ```julia julia> R = resistor(1000); circ = Circuit(); julia> add!(circ, R) Symbol("##296") julia> add!(circ, R) Symbol("##297") julia> ACME.nb(circ) 2 ``` I.e. the same element can now be added twice. In general, element instances should not have an identity, so the new behaviour seems more reasonable. (The same `R` could already be added to another circuit without having any effect on its presence in the first one, for example.)
- Loading branch information