From 33f1c8f50256df1b78156aa4c8fc19c776ed7547 Mon Sep 17 00:00:00 2001 From: dzalkind Date: Wed, 19 Jul 2023 16:12:41 -0600 Subject: [PATCH] Fix OL indices again --- ROSCO_toolbox/controller.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ROSCO_toolbox/controller.py b/ROSCO_toolbox/controller.py index a5af6c6c..a04a7fc3 100644 --- a/ROSCO_toolbox/controller.py +++ b/ROSCO_toolbox/controller.py @@ -815,6 +815,7 @@ def write_input(self,ol_filename): if not skip_write: ol_control_array = np.c_[ol_control_array,ol_timeseries[channel]] + ol_index_counter += 1 # Increment counter so it's 1 more than time, just like above in each iteration # Cable control is_cable_chan = np.array(['cable_control' in ol_chan for ol_chan in ol_timeseries.keys()])