PyLTSpice 5.2__tar.gz → 5.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PKG-INFO +12 -3
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice.egg-info/PKG-INFO +12 -3
- PyLTSpice-5.2.1/PyLTSpice.egg-info/requires.txt +1 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice.egg-info/top_level.txt +0 -1
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/README.md +8 -1
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/examples/run_montecarlo.py +14 -2
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/examples/run_worst_case.py +1 -1
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/pyproject.toml +4 -2
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/unittests/test_asc_editor.py +1 -1
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/unittests/test_pyltspice.py +3 -1
- PyLTSpice-5.2/PyLTSpice.egg-info/requires.txt +0 -1
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/LICENSE +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/Histogram.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/LTSteps.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/__init__.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/editor/__init__.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/editor/asc_editor.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/editor/spice_editor.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/log/__init__.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/log/logfile_data.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/log/ltsteps.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/log/semi_dev_op_reader.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/raw/__init__.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/raw/raw_classes.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/raw/raw_convert.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/raw/raw_read.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/raw/raw_write.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/rawplot.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/run_server.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/sim/__init__.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/sim/ltspice_simulator.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/sim/process_callback.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/sim/sim_batch.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/sim/sim_runner.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/sim/sim_stepping.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/sim/tookit/montecarlo.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/sim/tookit/worst_case.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/utils/detect_encoding.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice/utils/sweep_iterators.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice.egg-info/SOURCES.txt +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/PyLTSpice.egg-info/dependency_links.txt +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/examples/ltsteps_example.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/examples/raw_plotting.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/examples/raw_write_example.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/examples/sim_runner_asc_example.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/examples/sim_runner_callback_example.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/examples/sim_runner_callback_process_example.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/examples/sim_runner_example.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/examples/sim_stepper_example.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/examples/spice_editor_example.py +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/setup.cfg +0 -0
- {PyLTSpice-5.2 → PyLTSpice-5.2.1}/unittests/sweep_iterators_unittest.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyLTSpice
|
|
3
|
-
Version: 5.2
|
|
3
|
+
Version: 5.2.1
|
|
4
4
|
Summary: A set of tools to Automate LTSpice simulations
|
|
5
5
|
Author-email: Nuno Brum <me@nunobrum.com>
|
|
6
6
|
License: GNU GENERAL PUBLIC LICENSE
|
|
@@ -680,13 +680,15 @@ License: GNU GENERAL PUBLIC LICENSE
|
|
|
680
680
|
|
|
681
681
|
Project-URL: Homepage, https://github.com/nunobrum/PyLTSpice
|
|
682
682
|
Project-URL: Bug Tracker, https://github.com/nunobrum/PyLTSpice/issues
|
|
683
|
+
Project-URL: Repository, https://github.com/nunobrum/PyLTSpice.git
|
|
684
|
+
Project-URL: Author, https://www.nunobrum.com/
|
|
683
685
|
Classifier: Programming Language :: Python :: 3
|
|
684
686
|
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
685
687
|
Classifier: Operating System :: OS Independent
|
|
686
688
|
Requires-Python: >=3.8
|
|
687
689
|
Description-Content-Type: text/markdown
|
|
688
690
|
License-File: LICENSE
|
|
689
|
-
Requires-Dist: spicelib>=0.
|
|
691
|
+
Requires-Dist: spicelib>=1.0.4
|
|
690
692
|
|
|
691
693
|
# README #
|
|
692
694
|
|
|
@@ -1122,7 +1124,14 @@ _Make sure to initialize the root logger before importing the library to be able
|
|
|
1122
1124
|
* Alternative contact : [nuno.brum@gmail.com](mailto:nuno.brum@gmail.com)
|
|
1123
1125
|
|
|
1124
1126
|
## History ##
|
|
1125
|
-
Version 5.
|
|
1127
|
+
* Version 5.3.1
|
|
1128
|
+
* Fixes on the unittests after the spicelib update to 1.0.4
|
|
1129
|
+
|
|
1130
|
+
* Version 5.3
|
|
1131
|
+
* Correction on the run_montecarlo.py and run_worst_case.py examples.
|
|
1132
|
+
* Fixes on the spicelib (Version 1.0.3)
|
|
1133
|
+
|
|
1134
|
+
* Version 5.2
|
|
1126
1135
|
* SimAnalysis supporting both Qspice and LTSpice logfiles.
|
|
1127
1136
|
* FastWorstCaseAnalysis algorithm implemented
|
|
1128
1137
|
* Fix on the log reading of fourier data.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyLTSpice
|
|
3
|
-
Version: 5.2
|
|
3
|
+
Version: 5.2.1
|
|
4
4
|
Summary: A set of tools to Automate LTSpice simulations
|
|
5
5
|
Author-email: Nuno Brum <me@nunobrum.com>
|
|
6
6
|
License: GNU GENERAL PUBLIC LICENSE
|
|
@@ -680,13 +680,15 @@ License: GNU GENERAL PUBLIC LICENSE
|
|
|
680
680
|
|
|
681
681
|
Project-URL: Homepage, https://github.com/nunobrum/PyLTSpice
|
|
682
682
|
Project-URL: Bug Tracker, https://github.com/nunobrum/PyLTSpice/issues
|
|
683
|
+
Project-URL: Repository, https://github.com/nunobrum/PyLTSpice.git
|
|
684
|
+
Project-URL: Author, https://www.nunobrum.com/
|
|
683
685
|
Classifier: Programming Language :: Python :: 3
|
|
684
686
|
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
685
687
|
Classifier: Operating System :: OS Independent
|
|
686
688
|
Requires-Python: >=3.8
|
|
687
689
|
Description-Content-Type: text/markdown
|
|
688
690
|
License-File: LICENSE
|
|
689
|
-
Requires-Dist: spicelib>=0.
|
|
691
|
+
Requires-Dist: spicelib>=1.0.4
|
|
690
692
|
|
|
691
693
|
# README #
|
|
692
694
|
|
|
@@ -1122,7 +1124,14 @@ _Make sure to initialize the root logger before importing the library to be able
|
|
|
1122
1124
|
* Alternative contact : [nuno.brum@gmail.com](mailto:nuno.brum@gmail.com)
|
|
1123
1125
|
|
|
1124
1126
|
## History ##
|
|
1125
|
-
Version 5.
|
|
1127
|
+
* Version 5.3.1
|
|
1128
|
+
* Fixes on the unittests after the spicelib update to 1.0.4
|
|
1129
|
+
|
|
1130
|
+
* Version 5.3
|
|
1131
|
+
* Correction on the run_montecarlo.py and run_worst_case.py examples.
|
|
1132
|
+
* Fixes on the spicelib (Version 1.0.3)
|
|
1133
|
+
|
|
1134
|
+
* Version 5.2
|
|
1126
1135
|
* SimAnalysis supporting both Qspice and LTSpice logfiles.
|
|
1127
1136
|
* FastWorstCaseAnalysis algorithm implemented
|
|
1128
1137
|
* Fix on the log reading of fourier data.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
spicelib>=1.0.4
|
|
@@ -432,7 +432,14 @@ _Make sure to initialize the root logger before importing the library to be able
|
|
|
432
432
|
* Alternative contact : [nuno.brum@gmail.com](mailto:nuno.brum@gmail.com)
|
|
433
433
|
|
|
434
434
|
## History ##
|
|
435
|
-
Version 5.
|
|
435
|
+
* Version 5.3.1
|
|
436
|
+
* Fixes on the unittests after the spicelib update to 1.0.4
|
|
437
|
+
|
|
438
|
+
* Version 5.3
|
|
439
|
+
* Correction on the run_montecarlo.py and run_worst_case.py examples.
|
|
440
|
+
* Fixes on the spicelib (Version 1.0.3)
|
|
441
|
+
|
|
442
|
+
* Version 5.2
|
|
436
443
|
* SimAnalysis supporting both Qspice and LTSpice logfiles.
|
|
437
444
|
* FastWorstCaseAnalysis algorithm implemented
|
|
438
445
|
* Fix on the log reading of fourier data.
|
|
@@ -20,8 +20,20 @@ mc.prepare_testbench(num_runs=1000) # Prepares the testbench for 1000 simulatio
|
|
|
20
20
|
# Finally the netlist is saved to a file
|
|
21
21
|
mc.save_netlist('./testfiles/sallenkey_mc.net')
|
|
22
22
|
|
|
23
|
-
mc.
|
|
23
|
+
mc.run_testbench(runs_per_sim=100) # Runs the simulation with splits of 100 runs each
|
|
24
24
|
logs = mc.read_logfiles() # Reads the log files and stores the results in the results attribute
|
|
25
|
-
logs.
|
|
25
|
+
logs.obtain_amplitude_and_phase_from_complex_values() # Splits the complex values into real and imaginary parts
|
|
26
|
+
logs.export_data('./temp_mc/data_testbench.csv') # Exports the data to a csv file
|
|
26
27
|
logs.plot_histogram('fcut') # Plots the histograms for the results
|
|
27
28
|
mc.cleanup_files() # Deletes the temporary files
|
|
29
|
+
|
|
30
|
+
print("=====================================")
|
|
31
|
+
# Now using the second method, where the simulations are ran one by one
|
|
32
|
+
mc.clear_simulation_data() # Clears the simulation data
|
|
33
|
+
mc.reset_netlist() # Resets the netlist to the original
|
|
34
|
+
mc.run_analysis(num_runs=1000) # Runs the 1000 simulations
|
|
35
|
+
logs = mc.read_logfiles() # Reads the log files and stores the results in the results attribute
|
|
36
|
+
logs.export_data('./temp_mc/data_sims.csv') # Exports the data to a csv file
|
|
37
|
+
logs.plot_histogram('fcut') # Plots the histograms for the results
|
|
38
|
+
mc.cleanup_files() # Deletes the temporary files
|
|
39
|
+
|
|
@@ -19,8 +19,8 @@ wca.set_parameter_deviation('Vos', 3e-4, 5e-3)
|
|
|
19
19
|
# Finally the netlist is saved to a file
|
|
20
20
|
wca.save_netlist('./testfiles/sallenkey_wc.asc')
|
|
21
21
|
|
|
22
|
+
wca.run_testbench() # Runs the simulation with splits of 100 runs each
|
|
22
23
|
|
|
23
|
-
wca.run() # Runs the simulation with splits of 100 runs each
|
|
24
24
|
logs = wca.read_logfiles() # Reads the log files and stores the results in the results attribute
|
|
25
25
|
logs.export_data('./temp_wca/data.csv') # Exports the data to a csv file
|
|
26
26
|
|
|
@@ -6,7 +6,7 @@ requires = [
|
|
|
6
6
|
build-backend = "setuptools.build_meta"
|
|
7
7
|
[project]
|
|
8
8
|
name = "PyLTSpice"
|
|
9
|
-
version = "5.2"
|
|
9
|
+
version = "5.2.1"
|
|
10
10
|
authors = [
|
|
11
11
|
{ name="Nuno Brum", email="me@nunobrum.com" },
|
|
12
12
|
]
|
|
@@ -15,7 +15,7 @@ readme = "README.md"
|
|
|
15
15
|
license = { file="LICENSE" }
|
|
16
16
|
requires-python = ">=3.8"
|
|
17
17
|
dependencies = [
|
|
18
|
-
"spicelib>=0.
|
|
18
|
+
"spicelib>=1.0.4",
|
|
19
19
|
]
|
|
20
20
|
classifiers=[
|
|
21
21
|
"Programming Language :: Python :: 3",
|
|
@@ -33,3 +33,5 @@ namespaces = true # true by default
|
|
|
33
33
|
[project.urls]
|
|
34
34
|
"Homepage" = "https://github.com/nunobrum/PyLTSpice"
|
|
35
35
|
"Bug Tracker" = "https://github.com/nunobrum/PyLTSpice/issues"
|
|
36
|
+
"Repository" = "https://github.com/nunobrum/PyLTSpice.git"
|
|
37
|
+
"Author" = "https://www.nunobrum.com/"
|
|
@@ -33,7 +33,7 @@ class ASC_Editor_Test(unittest.TestCase):
|
|
|
33
33
|
self.edt.save_netlist(test_dir + 'test_parameter_output.asc')
|
|
34
34
|
self.equalFiles(test_dir + 'test_parameter_output.asc', golden_dir + 'test_parameter_output.asc')
|
|
35
35
|
self.edt.set_parameter('TEMP', 0) # reset to 0
|
|
36
|
-
self.assertEqual(self.edt.get_parameter('TEMP'), '0
|
|
36
|
+
self.assertEqual(self.edt.get_parameter('TEMP'), '0', "Tested TEMP Parameter") # add assertion here
|
|
37
37
|
|
|
38
38
|
def test_instructions(self):
|
|
39
39
|
self.edt.add_instruction('.ac dec 10 1 100k')
|
|
@@ -132,7 +132,9 @@ class test_pyltspice(unittest.TestCase):
|
|
|
132
132
|
for measure in log.get_measure_names():
|
|
133
133
|
print(measure, '=', log.get_measure_value(measure))
|
|
134
134
|
self.assertEqual(log.get_measure_value('fcutac'), 8479370.0)
|
|
135
|
-
|
|
135
|
+
vout1m = log.get_measure_value('vout1m')
|
|
136
|
+
self.assertEqual(vout1m.mag_db(), 6.02059)
|
|
137
|
+
self.assertAlmostEqual(vout1m.ph_rad(), 0, 5)
|
|
136
138
|
self.assertEqual(log.get_measure_value('vout1m').mag_db(), 6.02059)
|
|
137
139
|
|
|
138
140
|
@unittest.skipIf(skip_ltspice_tests, "Skip if not in windows environment")
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
spicelib>=0.9
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|