We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84bb70e commit 534e776Copy full SHA for 534e776
1 file changed
src/hde2e.py
@@ -83,7 +83,10 @@ def _realtime_core_io(self, instance_num: str) -> Optional[str]:
83
# Example mapping: IO_PLC_01 → cores 8-11, IO_PLC_02 → cores 12-15
84
t_cpus = self.config.demo.io_system.get("t_cpus")
85
t_cpus = t_cpus.split(",")
86
- return str(t_cpus[instance_num - 1])
+ if len(t_cpus) < 2:
87
+ print("[WARN] Not enough t_cpus specified for io_system. Expected at least 2.")
88
+ return None
89
+ return str(t_cpus[int(instance_num) - 1])
90
# Low-level helpers
91
@staticmethod
92
def _run_command(cmd: List[str], capture: bool = False) -> subprocess.CompletedProcess:
0 commit comments