Skip to content

Conversation

@cypheon
Copy link
Contributor

@cypheon cypheon commented Feb 6, 2019

Currently, PieceWiseLinearMixin does not read (time, value) pairs as documented, but expects a list of values of the target unit. The generated netlist does not contain times and is not valid SPICE syntax, as a space is missing.
This PR implements reading a list of (time, value)-tuples and adds a space in the output, so that the generated netlist syntax is acceptable by SPICE (tested with ngSpice 28 and 30).

Since Python 3.7, dict.items() guarantees insertion order, but before,
the order is undefined. To have reproducible output for tests, the
params are now sorted lexicographically.
Since Python 3.7, dict.items() guarantees insertion order, but before,
the order is undefined. To have reproducible output for tests, the
params are now sorted lexicographically.
@FabriceSalvaire FabriceSalvaire added this to the V1.3 milestone Mar 9, 2019
@FabriceSalvaire FabriceSalvaire merged commit 151a5d7 into PySpice-org:master Mar 9, 2019
@FabriceSalvaire
Copy link
Collaborator

Thanks !

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants