Skip to content
Snippets Groups Projects

architecture.py: add support for moving Processes between Resources

Merged Mikael Henriksson requested to merge architecture-move-process into master
1 unresolved thread

This PR adds support for moving processes between hardware resources in an architecture.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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]
  • Oscar Gustafsson approved this merge request

    approved this merge request

  • Please register or sign in to reply
    Loading