Skip to content

Commit

Permalink
Merge pull request #69 from qua-platform/fix/octave-rf_input_2-external
Browse files Browse the repository at this point in the history
Fix: Set default LO_source for Octave RF input 2 to "external"
  • Loading branch information
nulinspiratie authored Aug 13, 2024
2 parents 53f02f3 + 1f0e1b3 commit 9b20625
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

### Changed
- Allow `QuamBase.get_reference(attr)` to return a reference of one of its attributes
- Octave RF input 2 has `LO_source = "external"` by default

### Fixed
- Fix quam object instantiation error when a parameter type uses pipe operator
Expand All @@ -16,6 +17,7 @@
- Fix warning messages in QuamComponent instantiation



## [0.3.3]
### Added
- Added the following parameters to `IQChannel`: `RF_frequency`, `LO_frequency`, `intermediate_frequency`
Expand Down
5 changes: 4 additions & 1 deletion quam/components/octave.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ def initialize_frequency_converters(self):
)

for idx in range(1, 3):
self.RF_inputs[idx] = OctaveDownConverter(id=idx, LO_frequency=None)
LO_source = "internal" if idx == 1 else "external"
self.RF_inputs[idx] = OctaveDownConverter(
id=idx, LO_frequency=None, LO_source=LO_source
)

def get_octave_config(self) -> QmOctaveConfig:
"""Return a QmOctaveConfig object with the current Octave configuration."""
Expand Down
2 changes: 1 addition & 1 deletion tests/components/test_octave.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def test_load_octave(octave):
d_expected = {
"__class__": "test_octave.OctaveQuAM",
"octave": {
"RF_inputs": {1: {"id": 1}, 2: {"id": 2}},
"RF_inputs": {1: {"id": 1}, 2: {"id": 2, "LO_source": "external"}},
"RF_outputs": {
1: {"id": 1},
2: {"id": 2},
Expand Down

0 comments on commit 9b20625

Please sign in to comment.