Skip to content

Commit

Permalink
Final commit
Browse files Browse the repository at this point in the history
  • Loading branch information
juliushaag committed Jul 26, 2024
1 parent 0195025 commit 48b41be
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
class Migration(migrations.Migration):

dependencies = [
('hardware_controller', '0002_hardwareprofile_needs_totp_and_more'),
("hardware_controller", "0002_hardwareprofile_needs_totp_and_more"),
]

operations = [
migrations.AlterField(
model_name='hardwareprofile',
name='ip_addr',
field=models.CharField(default=''),
model_name="hardwareprofile",
name="ip_addr",
field=models.CharField(default=""),
),
]
2 changes: 1 addition & 1 deletion quafelweb/hardware_controller/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

# Create your views here.


class HardwareView:

# /hardware
Expand Down Expand Up @@ -103,6 +104,5 @@ def submit_change(request):
port_addr=port_addr,
needs_totp=needs_totp,
)
print(needs_totp)

return redirect("hardware")
2 changes: 0 additions & 2 deletions quafelweb/quafel_simulators/quafelsubmitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ def _submit(self, simulation_request: QuafelSimulationRequest):
self._set_state(simulation_request, QuafelSubmissionState.ERROR)

self._set_state(simulation_request, QuafelSubmissionState.READY)

print(self.get_output(simulation_request)) # TODO: delete

def submit(self, simulation_request: QuafelSimulationRequest) -> bool:
"""
Expand Down
3 changes: 0 additions & 3 deletions quafelweb/quafel_simulators/util/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,13 +265,10 @@ def _move_remote_output(self) -> bool:
build_pull_script = build_quafel_script_pull_output(
self._output_hardware, self._submit_id
)
print(build_pull_script)
completed_process = subprocess.run(
["bash", "-c", build_pull_script], check=False
)

print(completed_process.stdout)

if completed_process.returncode != 0:
return False

Expand Down
1 change: 0 additions & 1 deletion quafelweb/simulation_controller/util/simulation_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ def run_in_range(self, run: SimulationRun):
self.depth_increment,
self.depth_increment_type,
):
print(f"Checking {q} {s} {d}")
if run.qubits == q and run.shots == s and run.depth == d:
return True
return False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ def get_missing_runs_as_ranges(
for run in existing_runs:
for r in missing_ranges.copy():
if r.run_in_range(run):
print("Splitting range", r, "at", run)
missing_ranges.remove(r)
to_append_list = r.split(run)
print(f"append {len(to_append_list)} ranges")
for to_append in to_append_list:
missing_ranges.append(to_append)
break
Expand Down
1 change: 0 additions & 1 deletion quafelweb/simulation_controller/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def selection(request):
int(math.log(max_v, increment) + 1),
)
]
print(context[conf + "_values"])

conf_filter = {
"qubits__in": context["qubits_values"],
Expand Down

0 comments on commit 48b41be

Please sign in to comment.