diff --git a/scripts/diffContingencies.py b/scripts/diffContingencies.py index 90af59e9..f3564c14 100644 --- a/scripts/diffContingencies.py +++ b/scripts/diffContingencies.py @@ -15,7 +15,6 @@ import argparse import json import iidmDiff -import zipfile import constraintsDiff try: from itertools import zip_longest @@ -35,7 +34,6 @@ def get_argparser(): parser.add_argument("root", type=str, help="Root directory to process") parser.add_argument("testdir", type=str, help="Test directory to process") parser.add_argument("config", type=str, help="Simulation configuration file") - parser.add_argument("--output-zip", type=str, help="zip archive to process") return parser @@ -48,17 +46,6 @@ def compare_file(options, contingency_folder, chosen_outputs): if buildType == "Debug" or buildType == "Release" or buildType == "Coverage": - if options.output_zip: - zip_archive_parent_directory = os.path.join(options.root, "resultsTestsTmp", options.testdir) - zip_archive_path = os.path.join(zip_archive_parent_directory, options.output_zip) - unzipped_archive_path = zip_archive_parent_directory - try: - with zipfile.ZipFile(zip_archive_path, "r") as zip_ref: - zip_ref.extractall(unzipped_archive_path) - except FileNotFoundError: - print("[ERROR] " + zip_archive_path + " is missing") - nb_differences += 1 - if buildType == "Debug" or (buildType == "Release" and "STEADYSTATE" in chosen_outputs) or buildType == "Coverage": # output IIDM result_path = full_path(