Skip to content

Commit

Permalink
Fix "pyvisa_timeout_context" from pyvisa transition
Browse files Browse the repository at this point in the history
  • Loading branch information
natezb committed Dec 31, 2024
1 parent a02cab5 commit 5b5dbd8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/instrumental/drivers/lasers/femto_ferb.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
other things make the usb connection appear as a serial port, must be
installed (available from http://www.toptica.com/products/ultrafast_fiber_lasers/femtofiber_smart/femtosecond_erbium_fiber_laser_1560_nm_femtoferb)
"""
from ..util import visa_timeout_context
from . import Laser
from ..util import pyvisa_timeout_context

_INST_PRIORITY = 6
_INST_PARAMS = ['visa_address']
Expand Down
6 changes: 3 additions & 3 deletions src/instrumental/drivers/powermeters/newport.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"""
import time

from . import PowerMeter
from .. import Facet, MessageFacet, VisaMixin, deprecated
from ..util import pyvisa_timeout_context
from ... import Q_, u
from .. import Facet, MessageFacet, VisaMixin, deprecated
from ..util import visa_timeout_context
from . import PowerMeter


def _check_visa_support(visa_inst):
Expand Down
6 changes: 3 additions & 3 deletions src/instrumental/drivers/wavemeters/burleigh.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
* WA-1000/1500
"""
import warnings
import time
import warnings

from . import Wavemeter
from ..util import pyvisa_timeout_context
from ... import Q_
from ..util import visa_timeout_context
from . import Wavemeter

# Constants; See Appendix A of WA-1000/1500 manual for details
# 'Hard' command codes
Expand Down

0 comments on commit 5b5dbd8

Please sign in to comment.