Skip to content

Commit

Permalink
Merge pull request #70 from qutech/Hotfixes
Browse files Browse the repository at this point in the history
Hotfixes
  • Loading branch information
THuckemann authored Feb 7, 2024
2 parents 16e72dc + 8b86fe7 commit c269d75
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install coverage pytest pytest-cases pytest-mock pytest-qt pytest-xvfb
pip install coverage pytest==7.4.4 pytest-cases pytest-mock pytest-qt pytest-xvfb
- name: Install package
run: python -m pip install -e .
- name: Test with pytest
Expand Down
2 changes: 1 addition & 1 deletion src/qumada/instrument/mapping/QDevil/qdac.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def ramp(
raise Exception("Maximum length of rampable parameters is 8.")

# check, if all parameters are from the same instrument
instruments = [parameter.root_instrument for parameter in parameters]
instruments = {parameter.root_instrument for parameter in parameters}
if len(instruments) > 1:
raise Exception("Parameters are from more than one instrument. This would lead to non synchronized ramps.")

Expand Down
18 changes: 10 additions & 8 deletions src/qumada/measurement/doNd_enhanced/doNd_enhanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,16 @@
_register_actions,
_register_parameters,
_set_write_period,
catch_interrupts,
)

try:
from qcodes.dataset.dond.do_nd_utils import _catch_interrupts
except ImportError:
from qcodes.dataset.dond.do_nd_utils import catch_interrupts as _catch_interrupts

from qcodes.dataset.experiment_container import Experiment
from qcodes.dataset.measurements import Measurement
from qcodes.dataset.threading import (
SequentialParamsCaller,
ThreadPoolParamsCaller,
from qcodes.dataset.threading import ( # SequentialParamsCaller,; ThreadPoolParamsCaller,
process_params_meas,
)
from qcodes.parameters import ParameterBase
Expand Down Expand Up @@ -176,12 +179,12 @@ def do1d_parallel(
if use_threads is None:
use_threads = config.dataset.use_threads

param_meas_caller = ThreadPoolParamsCaller(*param_meas) if use_threads else SequentialParamsCaller(*param_meas)
tracked_setpoints = list()
# do1D enforces a simple relationship between measured parameters
# and set parameters. For anything more complicated this should be
# reimplemented from scratch
with catch_interrupts() as interrupted, meas.run() as datasaver, param_meas_caller as call_param_meas: # noqa: F841

with _catch_interrupts() as interrupted, meas.run() as datasaver:
dataset = datasaver.dataset
additional_setpoints_data = process_params_meas(additional_setpoints)

Expand Down Expand Up @@ -340,12 +343,11 @@ def do1d_parallel_asym(
if use_threads is None:
use_threads = config.dataset.use_threads

param_meas_caller = ThreadPoolParamsCaller(*param_meas) if use_threads else SequentialParamsCaller(*param_meas)
tracked_setpoints = list([] for _ in param_set)
# do1D enforces a simple relationship between measured parameters
# and set parameters. For anything more complicated this should be
# reimplemented from scratch
with catch_interrupts() as interrupted, meas.run() as datasaver, param_meas_caller as call_param_meas: # noqa: F841
with _catch_interrupts() as interrupted, meas.run() as datasaver:
dataset = datasaver.dataset
additional_setpoints_data = process_params_meas(additional_setpoints)

Expand Down
2 changes: 2 additions & 0 deletions src/qumada/measurement/scripts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
# Only relevant if you want to use spectrometer.
# Requires access to Bluhm Group GitLab
pass
except ImportError:
pass

__all__ = [
"Generic_1D_Sweep",
Expand Down

0 comments on commit c269d75

Please sign in to comment.