From ac0c63336a0cfe0edc95a2081fedda50882cd239 Mon Sep 17 00:00:00 2001 From: YinFengQi Date: Fri, 12 Dec 2025 16:05:58 +0800 Subject: [PATCH] fix: set 0 as default `max_BLACS_conn_length` - Set the default value of `max_BLACS_conn_length` to 0 so that the `np.empty` always receives a valid arguement - Fixes #118 --- labscript/labscript.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labscript/labscript.py b/labscript/labscript.py index 6e1d23f..037c59f 100644 --- a/labscript/labscript.py +++ b/labscript/labscript.py @@ -229,7 +229,7 @@ def generate_connection_table(hdf5_file): devicedict = {} # Only use a string dtype as long as is needed: - max_BLACS_conn_length = -1 + max_BLACS_conn_length = 0 for device in compiler.inventory: devicedict[device.name] = device