From a98a7ad895cd085af0a48e8f59ad73ffb59207e4 Mon Sep 17 00:00:00 2001 From: Farid Mohammadi <farid.mohammadi@iws.uni-stuttgart.de> Date: Mon, 11 Apr 2022 18:56:07 +0200 Subject: [PATCH] [pylink] move n_outputs to __init__ section. --- src/bayesvalidrox/pylink/pylink.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bayesvalidrox/pylink/pylink.py b/src/bayesvalidrox/pylink/pylink.py index 55455934c..5621be5bf 100644 --- a/src/bayesvalidrox/pylink/pylink.py +++ b/src/bayesvalidrox/pylink/pylink.py @@ -107,7 +107,6 @@ class PyLinkForwardModel(object): names: list = None file_names: list = None - def __init__(self, link_type='pylink', name=None, py_file=None, shell_command='', input_file=None, input_template=None, aux_file=None, exe_path='', output_file_names=[], @@ -130,6 +129,7 @@ class PyLinkForwardModel(object): names=output_names, file_names=output_file_names, ) + self.n_outputs = len(self.Output.names) self.meas_file = meas_file self.meas_file_valid = meas_file_valid self.mc_ref_file = mc_ref_file @@ -437,7 +437,6 @@ class PyLinkForwardModel(object): # Initilization n_c_points = len(c_points) - self.n_outputs = len(self.Output.names) all_outputs = {} # Extract the function -- GitLab