Skip to content

Commit

Permalink
removed platform dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jordivallsq committed Nov 8, 2024
1 parent ea3940b commit a305a18
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/qililab/qprogram/tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.
from typing import Callable

from qililab.platform.platform import Platform
from qililab.qprogram.experiment import Experiment

Check failure on line 16 in src/qililab/qprogram/tracker.py

View workflow job for this annotation

GitHub Actions / code-quality

Ruff (TCH001)

src/qililab/qprogram/tracker.py:16:41: TCH001 Move application import `qililab.qprogram.experiment.Experiment` into a type-checking block
from qililab.result.experiment_results import ExperimentResults

Check failure on line 17 in src/qililab/qprogram/tracker.py

View workflow job for this annotation

GitHub Actions / code-quality

Ruff (F401)

src/qililab/qprogram/tracker.py:17:47: F401 `qililab.result.experiment_results.ExperimentResults` imported but unused
from qililab.yaml import yaml
Expand Down Expand Up @@ -65,7 +64,6 @@ def build_measure_block(

def run_tracker(
self,
platform: Platform,
set_parameter: Callable,
values: list,
initial_guess: float,
Expand Down Expand Up @@ -94,11 +92,7 @@ def run_tracker(
self.guessed_path[operation].append(predicted_point)

# Do the experiment
experiment = self.measure_dict[operation](window)
with platform.session():
results_path = platform.execute_experiment(experiment, data_path)
with ExperimentResults(results_path) as results:
data, dims = results.get()
data, dims = self.measure_dict[operation](window)
self.total_data[operation].append(data)
self.experiment_dims[operation].append(dims)

Expand Down

0 comments on commit a305a18

Please sign in to comment.