-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from nunobrum/v1.3.3
Fixes on the instructions.
- Loading branch information
Showing
11 changed files
with
281 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# read netlist | ||
import spicelib | ||
|
||
net = spicelib.SpiceEditor("./testfiles/Batch_Test.net") # Loading the Netlist | ||
|
||
net.set_parameters(res=0, cap=100e-6) # Updating parameters res and cap | ||
net['R2'].value = '2k' # Updating the value of R2 to 2k | ||
net['R1'].value = 4000 # Updating the value of R1 to 4k | ||
net['V3'].model = "SINE(0 1 3k 0 0 0)" # changing the behaviour of V3 | ||
|
||
# add instructions | ||
net.add_instructions( | ||
"; Simulation settings", | ||
"; .step param run -1 100 1", | ||
) | ||
net.set_parameter('run', -1) | ||
net.save_netlist("Batch_Test_Modified.net") # writes the modified netlist to the indicated file |
This file contains 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
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ requires = [ | |
build-backend = "setuptools.build_meta" | ||
[project] | ||
name = "spicelib" | ||
version = "1.3.2" | ||
version = "1.3.3" | ||
authors = [ | ||
{ name="Nuno Brum", email="[email protected]" }, | ||
] | ||
|
This file contains 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