quantify_scheduler.resources
Common resources for use with the quantify_scheduler.
Module Contents
Classes
A resource corresponds to a physical resource such as a port or a clock. |
|
The ClockResource corresponds to a physical clock used to modulate pulses. |
|
Global identity for a virtual baseband clock |
- class Resource(name: str, data: Optional[dict] = None)[source]
Bases:
collections.UserDict
A resource corresponds to a physical resource such as a port or a clock.
- classmethod is_valid(operation: Resource) bool [source]
Validates the Resource against the schemas/resource.json fastjsonschema.
- Parameters
operation –
- Raises
fastjsonschema.JsonSchemaException – if the instance is invalid
fastjsonschema.JsonSchemaDefinitionException – if the schema itself is invalid
- Returns
If the validation was successful.
- Return type
- __eq__(other: object) bool [source]
Returns the equality of two instances based on its content
self.data
.- Parameters
other –