Skip to content

Commit

Permalink
#50 hotfix API doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
crnbaker committed Jan 24, 2024
1 parent 252c1bb commit 1884b4c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/spectrumdevice/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@
for controlling devices:
### Hardware Classes
| Name | Purpose |
|----------------------------|---------------------------------------------------------|
| `SpectrumDigitiserCard` | Controlling individual digitiser cards |
| `SpectrumDigitiserStarHub` | Controlling digitiser cards aggregated with a StarHub |
| `SpectrumAWGCard` | Controlling individual AWG cards |
| `SpectrumAWGStarHub` | Controlling AWG cards aggregated with a StarHub |
| Name | Purpose |
|----------------------------------|---------------------------------------------------------|
| `SpectrumDigitiserCard` | Controlling individual digitiser cards |
| `SpectrumDigitiserStarHub` | Controlling digitiser cards aggregated with a StarHub |
| `SpectrumDigitiserAnalogChannel` | Controlling analog channels of a digitiser |
| `SpectrumDigitiserIOLine` | Controlling multipurpose IO channels of a digitiser |
| `SpectrumAWGCard` | Controlling individual AWG cards |
| `SpectrumAWGStarHub` | (not yet implemented) |
| `SpectrumAWGAnalogChannel` | Controlling analog channels of an AWG |
| `SpectrumAWGIOLine` | Controlling multipurpose IO channels of an AWG |
### Mock Classes
`spectrumdevice` also includes mock classes for testing software without drivers installed or hardware connected:
Expand Down
1 change: 1 addition & 0 deletions src/spectrumdevice/devices/awg/awg_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
class SpectrumAWGCard(
AbstractSpectrumCard[SpectrumAWGAnalogChannelInterface, SpectrumAWGIOLineInterface], AbstractSpectrumAWG
):
"""Class for controlling individual Spectrum AWG cards."""
def _init_analog_channels(self) -> Sequence[SpectrumAWGAnalogChannelInterface]:
num_modules = self.read_spectrum_device_register(SPC_MIINST_MODULES)
num_channels_per_module = self.read_spectrum_device_register(SPC_MIINST_CHPERMODULE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@


class PulseGenerator(PulseGeneratorInterface):
"""Class for controlling pulse generators associated with IO lines (requires firmware option be enabled)."""
def __init__(self, parent: SpectrumIOLineInterface):
self._parent_io_line = parent
# last char of IO line name is IO line chanel number, which is used to set pulse generator number
Expand Down

0 comments on commit 1884b4c

Please sign in to comment.