ignoring test results

This commit is contained in:
Mario 2022-05-03 22:50:38 +02:00 committed by DSPOM
parent 7b15213668
commit 10c2c129a9
2 changed files with 9 additions and 18 deletions

4
.gitignore vendored
View File

@ -86,3 +86,7 @@ src/spicelib/parser/inpptree-parser.c
src/spicelib/parser/inpptree-parser.h
# Visual Studio Code user options files
.vscode/
test_cases/diode/test_osdi/.osdi/diode_va.so
test_cases/diode/test_osdi/*
test_cases/diode/test_built_in/*

View File

@ -1,19 +1,5 @@
""" test OSDI simulation of diode
"""
import types
from pathlib import Path
from DMT.core import DutType, Sweep, specifiers, SimCon, Plot, MCard
from DMT.core.circuit import (
Circuit,
CircuitElement,
RESISTANCE,
DIODE,
SHORT,
VOLTAGE,
)
from DMT.ngspice import DutNgspice
import os
import numpy as np
import subprocess
@ -30,6 +16,7 @@ import pandas as pd
# complicated and the results are therefore not exactly the same.
# Future tests will target Verilog-A models like HICUM/L2 that should yield exactly the same results as the Ngspice implementation.
# specify location of Ngspice executable to be tested
ngspice_path = "../../../debug/src/ngspice"
@ -164,8 +151,8 @@ if __name__ == "__main__":
plt.semilogx(
ac_data_osdi["frequency"], ac_data_osdi["i(vsense)"] * 1e3, label="OSDI"
)
plt.xlabel(r"$f(H)$")
plt.ylabel(r"$\Re \left\{ \underline{Y}_{11} \right\} (\mathrm{mS})$")
plt.xlabel("$f(\\mathrm{H})$")
plt.ylabel("$\\Re \\left\{ Y_{11} \\right\} (\\mathrm{mS})$")
plt.legend()
fig = plt.figure()
plt.semilogx(
@ -180,8 +167,8 @@ if __name__ == "__main__":
ac_data_osdi["i(vsense).1"] * 1e3 / omega,
label="OSDI",
)
plt.xlabel(r"$f(\mathrm{H})$")
plt.ylabel(r"$\Im \left\{ \underline{Y}_{11} \right\}/(\omega) (\mathrm{mF})$")
plt.xlabel("$f(\\mathrm{H})$")
plt.ylabel("$\\Im\\left\{Y_{11}\\right\}/(\\omega) (\\mathrm{mF})$")
plt.legend()
# TR plot