Skip to content

Commit 56e4a61

Browse files
committed
Using clipin instead of simple clipboard implementation that requires tkinter.
Adding files that were deleted by LTspice.exe
1 parent 8339b61 commit 56e4a61

File tree

9 files changed

+10
-171
lines changed

9 files changed

+10
-171
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# README <!-- omit in toc -->
22

3-
_current version: 1.4.8
3+
_current version: 1.4.9 (alpha)_
44

55
*spicelib* is a toolchain of python utilities design to interact with spice simulators, as for example:
66

@@ -1127,6 +1127,8 @@ For support and improvement requests please open an Issue
11271127
in [GitHub spicelib issues](https://github.com/nunobrum/spicelib/issues)
11281128

11291129
## History
1130+
* Version 1.5.0
1131+
* Adopting clipin for clipboard operations
11301132
* Version 1.4.8
11311133
* Fixing Issue #269 - improved support for Ø,€,£,× components for Qspice
11321134
* Fixing Issue #262 - Support for comments in netlists
@@ -1144,7 +1146,7 @@ in [GitHub spicelib issues](https://github.com/nunobrum/spicelib/issues)
11441146
* Fixing Issue #235 and #236 - Inconsistent formulas in montecarlo.py and in tolerance_deviations.py
11451147
* Fixing Issue #233 and #234 - `run_server` enhancements and platform compatibility
11461148
* Fixing Issue #224 - Allow maintenance of `.control` sections
1147-
* Fixing Issue #219 - Provide an option for defining the directory in which spice is executed
1149+
* Fixing Issue #219 - Provides an option for defining the directory in which spice is executed
11481150
* Fixing Issue #218 - Allow reading of multiple plots from 1 raw file
11491151
* Fixing Issue #214 - Netlist concatenations are badly interpreted
11501152
* Fixing Issue #213 - Add support for Verilog A elements

examples/testfiles/DC sweep.net

Lines changed: 0 additions & 15 deletions
This file was deleted.

examples/testfiles/testfile.net

Lines changed: 0 additions & 10 deletions
This file was deleted.

examples/testfiles/top_circuit.net

Lines changed: 0 additions & 22 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ numpy = "*"
1717
scipy = "*"
1818
psutil = "*"
1919
matplotlib = "*"
20+
clipin = "*"
2021

2122
[tool.poetry.scripts]
2223
ltsteps = "spicelib.scripts.ltsteps:main"

spicelib/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from .editor.asc_editor import AscEditor
88
from .editor.qsch_editor import QschEditor
99
from .sim.sim_runner import SimRunner
10-
from .utils.clipboard import Clipboard
1110

1211

1312
def all_loggers():

spicelib/raw/raw_convert.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,9 @@ def main():
115115
for i in range(data_size):
116116
text += options.separator.join([str(data[col][i]) for col in data.keys()]) + '\n'
117117
if options.clipboard:
118-
from spicelib.utils.clipboard import Clipboard
119-
cb = Clipboard()
118+
import clipin
120119
print(f"Copying to clipboard text with {len(text)} bytes")
121-
cb.copy(text)
122-
del(cb)
120+
clipin.copy(text)
123121
else:
124122
print(text)
125123
else:

spicelib/scripts/histogram.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,18 +108,15 @@ def main():
108108

109109
if options.clipboard:
110110

111-
from spicelib.utils.clipboard import Clipboard
111+
import clipin
112+
112113

113-
cb = Clipboard()
114-
115114
if len(args) > 0:
116115
TRACE = args[-1]
117116
else:
118117
TRACE = "var"
119118

120-
text = cb.paste()
121-
122-
del(cb)
119+
text = clipin.paste()
123120

124121
for line in text.split('\n'):
125122
try:

spicelib/utils/clipboard.py

Lines changed: 0 additions & 111 deletions
This file was deleted.

0 commit comments

Comments
 (0)