sashimi.hardware.scanning#
Classes
Helper class that provides a standard way to create an ABC using inheritance. |
|
Functions
- sashimi.hardware.scanning.abstractmethod(funcobj)[source]#
A decorator indicating abstract methods.
Requires that the metaclass is ABCMeta or derived from it. A class that has a metaclass derived from ABCMeta cannot be instantiated unless all of its abstract methods are overridden. The abstract methods can be called using any of the normal ‘super’ call mechanisms. abstractmethod() may be used to declare abstract methods for properties and descriptors.
Usage:
- class C(metaclass=ABCMeta):
@abstractmethod def my_abstract_method(self, …):
…
- sashimi.hardware.scanning.contextmanager(func)[source]#
@contextmanager decorator.
Typical usage:
@contextmanager def some_generator(<arguments>):
<setup> try:
yield <value>
- finally:
<cleanup>
This makes this:
- with some_generator(<arguments>) as <variable>:
<body>
equivalent to this:
<setup> try:
<variable> = <value> <body>
- finally:
<cleanup>
- sashimi.hardware.scanning.open_abstract_interface(sample_rate, n_samples, conf)[source]#
- Return type:
Exceptions