Skip to content

Commit

Permalink
Give HMC7044 clocks unique names and update webapp to use all of them
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <[email protected]>
  • Loading branch information
tfcollins committed Jun 4, 2024
1 parent 61fc406 commit 96b7444
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion adijif/clocks/hmc7044.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def set_requested_clocks(
od = self.model.Intermediate(eo * odd + (1 - eo) * even * 2)

elif self.solver == "CPLEX":
od = self._convert_input(self._d, "d_" + str(out_freq))
od = self._convert_input(self._d, f"d_{out_freq}_{d_n}")

self._add_equation(
[
Expand Down
12 changes: 6 additions & 6 deletions webapp/app/src/pages/clockconfigurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ def write(self):
output_clocks = list(map(int, output_clocks)) # force to be ints

# Remove duplicates
output_clocks_filtered = []
output_names_filtered = []
for i, clk in enumerate(output_clocks):
if clk not in output_clocks_filtered:
output_clocks_filtered.append(clk)
output_names_filtered.append(output_names[i])
output_clocks_filtered = output_clocks
output_names_filtered = output_names
# for i, clk in enumerate(output_clocks):
# if clk not in output_clocks_filtered:
# output_clocks_filtered.append(clk)
# output_names_filtered.append(output_names[i])

clk_chip.set_requested_clocks(
reference, output_clocks_filtered, output_names_filtered
Expand Down

0 comments on commit 96b7444

Please sign in to comment.