(cirFile, analysisType, traceType, postProc)
| 626 | print("NGspice command not found in the [command] section of '{}'.".format(ini.home_path + "SLiCAP.ini")) |
| 627 | |
| 628 | def _processNGspiceResult(cirFile, analysisType, traceType, postProc): |
| 629 | # Read the CSV file |
| 630 | traceDict = None |
| 631 | with open(ini.cir_path + cirFile + '.csv', 'r') as f: |
| 632 | lines = f.readlines() |
| 633 | analysisType = analysisType.upper() |
| 634 | if analysisType == 'DC' or analysisType == 'NOISE' or (analysisType == 'TRAN' and (postProc is None or postProc.split()[0].upper() == "FOURIER")): |
| 635 | traceDict = _makeDCTRNStraces(lines) |
| 636 | elif analysisType.upper() == 'AC' or analysisType == 'TRAN': |
| 637 | traceDict = _makeACtraces(lines, traceType) |
| 638 | elif analysisType == "OP": |
| 639 | traceDict = _makeOPtraces(lines) |
| 640 | else: |
| 641 | raise NotImplementedError() |
| 642 | remove(ini.cir_path + cirFile + '.csv') |
| 643 | return traceDict |
| 644 | |
| 645 | def _makeOPtraces(lines): |
| 646 | traceDict = {} |
no test coverage detected