From 32244e4e29bf066b39f6b6b3db4b9059bf0a48e9 Mon Sep 17 00:00:00 2001 From: Chetanya <95761876+chetanyagoyal@users.noreply.github.com> Date: Wed, 15 Nov 2023 15:35:44 +0530 Subject: [PATCH] update ngspice version check statement --- .github/scripts/parse_rpt.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/scripts/parse_rpt.py b/.github/scripts/parse_rpt.py index 909a1b39d..faee90d8c 100644 --- a/.github/scripts/parse_rpt.py +++ b/.github/scripts/parse_rpt.py @@ -28,7 +28,7 @@ import json import os import re, subprocess -from common.get_ngspice_version import get_ngspice_version +from common.get_ngspice_version import check_ngspice_version sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from common.check_gen_files import check_gen_files @@ -113,11 +113,9 @@ print("Flow check failed!") if len(sys.argv) == 1: - prev_ngspice_ver = 41 - installed_ngspice_ver = get_ngspice_version() sim_state_filename = "work/sim_state_file.txt" - if installed_ngspice_ver != 0: + if check_ngspice_version(): if installed_ngspice_ver == prev_ngspice_ver: result_filename = "work/prePEX_sim_result" @@ -149,4 +147,4 @@ else: raise ValueError("Simulations failed: required of run folders do not exist!") - print("Simulations are clean!") \ No newline at end of file + print("Simulations are clean!")