From 0cf47bdb78fd214d32fb11af3896dc5915118754 Mon Sep 17 00:00:00 2001 From: Linus Seelinger Date: Tue, 11 Jun 2024 11:49:16 +0200 Subject: [PATCH] L2-Sea: Make propagation benchmark have only 1 output as documented (drop optimization constraints here) --- models/l2-sea/umbridge-server.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/l2-sea/umbridge-server.py b/models/l2-sea/umbridge-server.py index 09766e2..0a9da05 100644 --- a/models/l2-sea/umbridge-server.py +++ b/models/l2-sea/umbridge-server.py @@ -63,7 +63,7 @@ def get_input_sizes(self, config): return [2] def get_output_sizes(self, config): - return [5] + return [1] def __call__(self, parameters, config): # Write first (and only) parameter vector to file @@ -92,7 +92,7 @@ def __call__(self, parameters, config): print(config) return_value = os.system('cd /NATO-AVT-331-L2-Sea-Benchmark/examples/DTMB-5415; mv SBDF.aux SBDF.nml; ../../bin/L2-Sea') if return_value != 0: - return [[0,0,0,0,0]] + return [[0]] # Read second line of output file, split and return last 5 elements as output @@ -102,7 +102,7 @@ def __call__(self, parameters, config): line_split = line.split()[-5:] # Split and keep last 5 elements model_output = [float(i) for i in line_split] # Convert to float - return [model_output] + return [[model_output[0]]] def supports_evaluate(self): return True