Skip to content

Measurement Plug-In SDK for Python v2.1.0-dev2

Pre-release
Pre-release
Compare
Choose a tag to compare
@bkeryan bkeryan released this 27 Sep 18:12
· 5 commits to releases/2.1 since this release
7df18c2

Compatibility Notes

  • The version for a measurement plug-in is now specified in the .serviceconfig file. If your plug-in specifies version using the constructor of the MeasurementService 'version' parameter and not with a 'version' element in the .serviceconfig file, the version will be ignored and your service will be registered as version 0.1.0.
  • Configuration parameters with array types should be treated as Sequence[T] or Iterable[T] rather than List[T]. You can still index, iterate, slice, etc. but some operations such as concatenating with another list or tuple are not supported. If you need the parameter to be converted to a list or a tuple, you should do that in your measure() function. See this example.

New Measurement Plug-In Client Generator

  • Added the client generator, allowing users to call into a measurement plug-in from Python (#889, #891, #892, #900, #901, #902)

Bug Fixes and Minor Changes

  • Measurement Plug-In Generator Bug Fixes Since v2.1.0-dev1
    • Raise errors for invalid enums (#920)
    • Update default value for the pin map sites (#921)
    • Fix mypy errors (#929)
    • Update client to resolve a specific plug-in version (#938)
    • Fix SyntaxWarning caused by incorrect escape sequence (#934)
    • Add dependency on service (#947)
    • Provide support backward compatibility for Older libraries (#951)
    • Fix Path type conversion and type hints for client codegen (#952)
  • Examples
    • Update service class of Game of Life example's .instudioproj and .sfp (#933)
    • Don't assume array parameters are implemented as lists (#936)
  • Update version checking to warn that version is deprecated and error if there is no .serviceconfig version (#935)
  • Add resolve service with information API in the discovery client (#950)

Full Changelog: 2.1.0-dev1...2.1.0-dev2