Skip to content

Commit

Permalink
Merge pull request #154 from ISISComputingGroup/TICKET7352_tekafg_res…
Browse files Browse the repository at this point in the history
…ponse

Fix phase returning frequency in Tekafg3xxx emulator
  • Loading branch information
Tom-Willemsen authored Sep 23, 2022
2 parents f1baa5f + 7707e56 commit 8b8081b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lewis_emulators/tekafg3XXX/interfaces/stream_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,16 +178,16 @@ def set_frequency_mode(self, channel: int, new_frequency_mode: str):
self._channel(channel).frequency_mode = new_frequency_mode

def get_phase(self, channel: int) -> float:
return self._channel(channel).frequency
return self._channel(channel).phase

def set_phase(self, channel: int, new_phase: float):
self._channel(channel).phase = new_phase

def get_burst_status(self, channel: int) -> str:
return 1 if self._channel(channel).burst_status == "ON" else 0
return self._channel(channel).burst_status

def set_burst_status(self, channel: int, new_burst_status: str):
self._channel(channel).burst_status = new_burst_status
self._channel(channel).burst_status = "ON" if new_burst_status in ["ON", "1"] else "OFF"

def get_burst_mode(self, channel: int) -> str:
return self._channel(channel).burst_mode
Expand Down

0 comments on commit 8b8081b

Please sign in to comment.