File: param.py

package info (click to toggle)
gnucap-python 0.0.2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,672 kB
  • sloc: python: 7,873; sh: 4,384; cpp: 1,786; makefile: 252
file content (19 lines) | stat: -rw-r--r-- 374 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python

import gnucap

gnucap.command("print op hidden(0)")
gnucap.command("store op hidden(0)")
gnucap.command("op")
w = gnucap.CKT_BASE_find_wave("hidden(0)")

gnucap.command("param test=17")
gnucap.command("eval test")
gnucap.command("measure mm at(probe='hidden(0)')")

assert(17==gnucap.eval("test"))
assert(0==gnucap.eval("mm"))

for i in w:
	print(i)