Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • H hvl_ccb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 10
    • Issues 10
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

  • HVL
  • hvl_ccb
  • Issues
  • #26

Closed
Open
Created Sep 02, 2019 by mikolajr@mikolajrMaintainer

DeviceSequenceMixin inherit from collections.UserDict

DeviceSequenceMixin is really just an ordered dict (*), w/ extra start/stop and .KEY lookup, so it seems best to just follow Python API there.

(*) Note: dicts are ordered by default since Py 3.7 (which we take anyway advantage of)

In consequence:

  • instead of get_devices() all iterators are avail .keys()/.values()/.items()
  • instead of get_device use __getitem__/get()
  • instead of add_device()/remove_device() use __setitem__/__delitem__/pop()

@menneh this would not be backward compatible and would break your experiments code (some minor re-factoring would be needed on hvl-ccb package update, once released). Would that be fine w/ you?

Edited Sep 02, 2019 by mikolajr
Assignee
Assign to
Time tracking