Skip to content
Snippets Groups Projects
Commit 1f12c76d authored by camera computer's avatar camera computer
Browse files

sync push

parent 0bdd109b
No related branches found
No related tags found
No related merge requests found
...@@ -37,12 +37,12 @@ class Waveform: ...@@ -37,12 +37,12 @@ class Waveform:
if np.sum(amps) >= 2**15 - 1: if np.sum(amps) >= 2**15 - 1:
print("warning: amplitudes too high") print("warning: amplitudes too high")
return False return False
self.amplitude = amps[:len(amplitude)] self.amplitude = amps[:len(self.amplitude)]
return True return True
def set_phase(self, phase: np.ndarray) -> bool: def set_phase(self, phase: np.ndarray) -> bool:
self.phi = phase self.phi = phase[:len(self.phi)]
return True return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment