Skip to content

Commit

Permalink
#810 Revert diffContingencies.py because it does not check any file i…
Browse files Browse the repository at this point in the history
…n outputs.zip anyway

Signed-off-by: Dimitri Baron <[email protected]>
  • Loading branch information
barondim committed Jan 22, 2025
1 parent a1c8263 commit 43908c4
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions scripts/diffContingencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import argparse
import json
import iidmDiff
import zipfile
import constraintsDiff
try:
from itertools import zip_longest
Expand All @@ -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

Expand All @@ -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(
Expand Down

0 comments on commit 43908c4

Please sign in to comment.