architecture.py: add support for moving Processes between Resources
1 unresolved thread
This PR adds support for moving processes between hardware resources in an architecture.
Merge request reports
Activity
Related issue: #241
added Architecture Resource allocation labels
1432 """ 1433 Get a :class:`~b_asic.process.Process` from this collection from its name. 1434 1435 Raises :class:`KeyError` if no processes with ``name`` is found in this 1436 colleciton. 1437 1438 Parameters 1439 ---------- 1440 name : str 1441 The name of the process to retrieve. 1442 """ 1443 name_to_proc = {p.name: p for p in self.collection} 1444 if name not in name_to_proc: 1445 raise KeyError(f'{name} not in {self}') 1446 else: 1447 return name_to_proc[name]
Please register or sign in to reply