From 1a713512c82ce8c084129061723848cf256452a1 Mon Sep 17 00:00:00 2001 From: Nicholas Felt Date: Mon, 4 Mar 2024 10:07:22 -0800 Subject: [PATCH] style: Run ruff formatter over the code. --- docs/conf.py | 1 + examples/miscellaneous/adding_devices.py | 1 + .../adding_devices_with_env_var.py | 1 + examples/miscellaneous/alias_usage.py | 1 + .../custom_device_driver_support.py | 1 + .../disable_command_verification.py | 1 + .../miscellaneous/pyvisa_resource_access.py | 1 + examples/miscellaneous/register_dm_atexit.py | 1 + .../visa_connection_selectivity.py | 1 + examples/scopes/tekscope/basic_curve_query.py | 1 + examples/scopes/tekscope/basic_save_recall.py | 1 + .../tekscope/generate_internal_afg_signal.py | 1 + .../scopes/tekscope/get_acquisition_data.py | 1 + .../dpojet/adding_dpojet_measurements.py | 1 + .../2400/smu_2460_pulse_train.py | 1 + .../2400/smu_2460_solar_panel_sweep.py | 1 + .../2400/smu_2461_1kw_pulsing.py | 1 + .../2400/smu_2461_pulse_sweep_i_digitize_v.py | 1 + .../2400/smu_2470_insulation_resistance.py | 1 + .../2400/smu_2470_mosfet_leakage.py | 1 + .../2600/reading_dynamic_buffers.py | 1 + .../2600/smu_2600_ac_waveform_sweep.py | 1 + .../2600/smu_2600_bjt_slow.py | 1 + .../2600/smu_2600_diode_test_fast.py | 1 + .../2600/smu_2651_fast_adc_usage.py | 1 + .../2600/smu_2657_dioderl_swp.py | 1 + .../2600/smu_2657a_capacitor_leakage.py | 1 + .../2600/smu_2657a_mosfet_bvdss.py | 1 + .../2600/smu_2657a_mosfet_idss.py | 1 + .../3700/dmm_3706a_basic_scan.py | 1 + .../3700/dmm_3706a_simple_scan.py | 1 + .../system_switch/3700/dmm_3706a_temp_scan.py | 1 + scripts/check_unreleased_changelog_items.py | 1 + scripts/contributor_setup.py | 1 + scripts/create_post_version_for_testpypi.py | 1 + scripts/project_version.py | 1 + scripts/pypi_latest_version.py | 1 + scripts/update_development_dependencies.py | 1 + src/tm_devices/__init__.py | 1 + src/tm_devices/commands/_163n04_mdo/search.py | 111 ++-- src/tm_devices/commands/_16x4xq_mdo/search.py | 111 ++-- .../commands/_1jzp7o_mdodpo/trigger.py | 1 + src/tm_devices/commands/_1kdqwg_mdo/search.py | 111 ++-- .../commands/_1kdqwg_mdo/trigger.py | 1 + .../commands/_1kjd62_mdo/measurement.py | 1 + src/tm_devices/commands/_1kjd62_mdo/rf.py | 1 + src/tm_devices/commands/_1kozfv_dpo/search.py | 111 ++-- .../commands/_1l4fot_mdomso/cursor.py | 1 + .../commands/_1l5u97_mdomsodpo/measurement.py | 1 + .../commands/_1la1ym_msomdodpo/trigger.py | 1 + .../commands/_1lcv3a_msodpomdo/message.py | 1 + .../commands/_1lcv3a_msodpomdo/setup_1.py | 1 + .../commands/_1lh2st_msodpo/search.py | 111 ++-- .../commands/_1ltpwt_mdomsodpo/actonevent.py | 1 + .../commands/_1ltpwt_mdomsodpo/afg.py | 1 + .../commands/_1ltpwt_mdomsodpo/alias.py | 1 + .../commands/_1ltpwt_mdomsodpo/application.py | 1 + .../commands/_1ltpwt_mdomsodpo/autoset.py | 1 + .../commands/_1ltpwt_mdomsodpo/auxin.py | 1 + .../commands/_1ltpwt_mdomsodpo/auxout.py | 1 + .../commands/_1ltpwt_mdomsodpo/bus.py | 1 + .../commands/_1ltpwt_mdomsodpo/calibrate.py | 1 + .../commands/_1ltpwt_mdomsodpo/ch.py | 1 + .../commands/_1ltpwt_mdomsodpo/d.py | 1 + .../commands/_1ltpwt_mdomsodpo/data.py | 1 + .../commands/_1ltpwt_mdomsodpo/diag.py | 1 + .../commands/_1ltpwt_mdomsodpo/dvm.py | 1 + .../commands/_1ltpwt_mdomsodpo/email.py | 1 + .../commands/_1ltpwt_mdomsodpo/ethernet.py | 1 + .../commands/_1ltpwt_mdomsodpo/filesystem.py | 1 + .../commands/_1ltpwt_mdomsodpo/fpanel.py | 1 + .../commands/_1ltpwt_mdomsodpo/gpibusb.py | 1 + .../commands/_1ltpwt_mdomsodpo/hardcopy.py | 1 + .../commands/_1ltpwt_mdomsodpo/histogram.py | 1 + .../commands/_1ltpwt_mdomsodpo/horizontal.py | 1 + .../commands/_1ltpwt_mdomsodpo/mark.py | 1 + .../commands/_1ltpwt_mdomsodpo/marker.py | 1 + .../commands/_1ltpwt_mdomsodpo/math1.py | 1 + .../commands/_1ltpwt_mdomsodpo/pictbridge.py | 1 + .../commands/_1ltpwt_mdomsodpo/power.py | 1 + .../commands/_1ltpwt_mdomsodpo/reboot.py | 1 + .../commands/_1ltpwt_mdomsodpo/ref.py | 1 + .../commands/_1ltpwt_mdomsodpo/save.py | 1 + .../_1ltpwt_mdomsodpo/socketserver.py | 1 + .../commands/_1ltpwt_mdomsodpo/time.py | 1 + .../commands/_1ltpwt_mdomsodpo/vidpic.py | 1 + .../commands/_1ltpwt_mdomsodpo/wfminpre.py | 1 + .../commands/_1ltpwt_mdomsodpo/wfmoutpre.py | 1 + .../commands/_1ltpwt_mdomsodpo/zoom.py | 1 + .../commands/_1lwj1r_msomdodpo/rosc.py | 1 + .../commands/_1lxxm9_msomdodpo/cursor.py | 1 + .../commands/_1mlt9u_mdomsodpo/acquire.py | 1 + .../_1mlt9u_mdomsodpo/configuration.py | 1 + .../commands/_1mlt9u_mdomsodpo/deskew.py | 1 + .../commands/_1mlt9u_mdomsodpo/display.py | 1 + .../commands/_1mlt9u_mdomsodpo/mask.py | 1 + .../commands/_1mlt9u_mdomsodpo/recall.py | 1 + .../commands/_1mlt9u_mdomsodpo/select.py | 1 + src/tm_devices/commands/_1mq0z9_msodpo/rf.py | 1 + .../commands/_1nmc1o_msodpomdo/clearmenu.py | 1 + .../commands/_1nmc1o_msodpomdo/errlog.py | 1 + .../commands/_1nmc1o_msodpomdo/header.py | 1 + .../commands/_1nmc1o_msodpomdo/language.py | 1 + .../_1nmc1o_msodpomdo/status_and_error.py | 1 + .../commands/_1nmc1o_msodpomdo/usbdevice.py | 1 + .../commands/_1nmc1o_msodpomdo/usbtmc.py | 1 + .../commands/_1nmc1o_msodpomdo/verbose.py | 1 + src/tm_devices/commands/_1zn03_mso/acquire.py | 1 + .../commands/_1zn03_mso/actonevent.py | 1 + src/tm_devices/commands/_1zn03_mso/auxout.py | 1 + src/tm_devices/commands/_1zn03_mso/battery.py | 1 + src/tm_devices/commands/_1zn03_mso/bus.py | 1 + .../commands/_1zn03_mso/callouts.py | 1 + src/tm_devices/commands/_1zn03_mso/ch.py | 1 + src/tm_devices/commands/_1zn03_mso/data.py | 1 + src/tm_devices/commands/_1zn03_mso/dch.py | 1 + src/tm_devices/commands/_1zn03_mso/diag.py | 1 + src/tm_devices/commands/_1zn03_mso/display.py | 1 + src/tm_devices/commands/_1zn03_mso/fpanel.py | 1 + .../commands/_1zn03_mso/horizontal.py | 1 + src/tm_devices/commands/_1zn03_mso/lic.py | 1 + src/tm_devices/commands/_1zn03_mso/license.py | 1 + src/tm_devices/commands/_1zn03_mso/mask.py | 1 + src/tm_devices/commands/_1zn03_mso/math.py | 1 + .../commands/_1zn03_mso/measurement.py | 1 + src/tm_devices/commands/_1zn03_mso/pg.py | 1 + src/tm_devices/commands/_1zn03_mso/plot.py | 1 + src/tm_devices/commands/_1zn03_mso/power.py | 1 + src/tm_devices/commands/_1zn03_mso/ref.py | 1 + src/tm_devices/commands/_1zn03_mso/save.py | 1 + src/tm_devices/commands/_1zn03_mso/saveon.py | 1 + .../commands/_1zn03_mso/saveonevent.py | 1 + src/tm_devices/commands/_1zn03_mso/search.py | 161 ++--- src/tm_devices/commands/_1zn03_mso/select.py | 1 + .../commands/_1zn03_mso/touchscreen.py | 1 + src/tm_devices/commands/_1zn03_mso/trigger.py | 1 + .../commands/_22daqs_afg/afgcontrol.py | 1 + src/tm_devices/commands/_22daqs_afg/data.py | 1 + .../commands/_22daqs_afg/diagnostic.py | 1 + .../commands/_22daqs_afg/display.py | 1 + src/tm_devices/commands/_22daqs_afg/hcopy.py | 1 + src/tm_devices/commands/_22daqs_afg/memory.py | 1 + .../commands/_22daqs_afg/mmemory.py | 1 + src/tm_devices/commands/_22daqs_afg/output.py | 1 + .../commands/_22daqs_afg/output1.py | 1 + .../commands/_22daqs_afg/output2.py | 1 + src/tm_devices/commands/_22daqs_afg/source.py | 1 + .../commands/_22daqs_afg/source1.py | 1 + .../commands/_22daqs_afg/source2.py | 1 + .../commands/_22daqs_afg/source3.py | 1 + .../commands/_22daqs_afg/source4.py | 1 + src/tm_devices/commands/_22daqs_afg/status.py | 1 + src/tm_devices/commands/_22daqs_afg/system.py | 1 + .../commands/_22daqs_afg/trigger.py | 1 + src/tm_devices/commands/_2i1z2s_awg/abort.py | 1 + .../commands/_2i1z2s_awg/auxoutput.py | 1 + .../commands/_2i1z2s_awg/awgcontrol.py | 1 + .../commands/_2i1z2s_awg/bwaveform.py | 1 + src/tm_devices/commands/_2i1z2s_awg/clock.py | 1 + .../commands/_2i1z2s_awg/cplayback.py | 1 + src/tm_devices/commands/_2i1z2s_awg/fgen.py | 1 + .../commands/_2i1z2s_awg/instrument.py | 1 + .../commands/_2i1z2s_awg/mmemory.py | 1 + src/tm_devices/commands/_2i1z2s_awg/output.py | 1 + src/tm_devices/commands/_2i1z2s_awg/source.py | 1 + .../commands/_2i1z2s_awg/synchronize.py | 1 + src/tm_devices/commands/_2i1z2s_awg/system.py | 1 + .../commands/_2i1z2s_awg/trigger.py | 1 + src/tm_devices/commands/_2i1z2s_awg/wlist.py | 41 +- .../commands/_32dszm_awg/awgcontrol.py | 1 + .../commands/_32dszm_awg/diagnostic.py | 1 + .../commands/_32dszm_awg/display.py | 1 + src/tm_devices/commands/_32dszm_awg/event.py | 1 + .../commands/_32dszm_awg/instrument.py | 1 + .../commands/_32dszm_awg/mmemory.py | 1 + src/tm_devices/commands/_32dszm_awg/output.py | 1 + .../commands/_32dszm_awg/sequence.py | 1 + src/tm_devices/commands/_32dszm_awg/slist.py | 11 +- src/tm_devices/commands/_32dszm_awg/source.py | 1 + src/tm_devices/commands/_32dszm_awg/status.py | 1 + src/tm_devices/commands/_32dszm_awg/system.py | 1 + .../commands/_32dszm_awg/trigger.py | 1 + src/tm_devices/commands/_32dszm_awg/wlist.py | 1 + .../commands/_33ijgq_afgawg/abort.py | 1 + .../commands/_33ijgq_afgawg/calibration.py | 1 + src/tm_devices/commands/_3n9auv_awg/active.py | 1 + .../commands/_3n9auv_awg/calibration.py | 1 + .../commands/_3n9auv_awg/diagnostic.py | 1 + .../commands/_3n9auv_awg/display.py | 1 + src/tm_devices/commands/_3n9auv_awg/output.py | 1 + src/tm_devices/commands/_3n9auv_awg/slist.py | 1 + src/tm_devices/commands/_3n9auv_awg/status.py | 1 + .../commands/_3n9auv_awg/wplugin.py | 1 + .../commands/_3rs8qy_awg/auxoutput.py | 1 + .../commands/_3rs8qy_awg/awgcontrol.py | 1 + .../commands/_3rs8qy_awg/bwaveform.py | 1 + src/tm_devices/commands/_3rs8qy_awg/clock.py | 1 + .../commands/_3rs8qy_awg/cplayback.py | 1 + src/tm_devices/commands/_3rs8qy_awg/fgen.py | 1 + .../commands/_3rs8qy_awg/instrument.py | 1 + .../commands/_3rs8qy_awg/mmemory.py | 1 + src/tm_devices/commands/_3rs8qy_awg/output.py | 1 + src/tm_devices/commands/_3rs8qy_awg/source.py | 1 + .../commands/_3rs8qy_awg/synchronize.py | 1 + src/tm_devices/commands/_3rs8qy_awg/system.py | 1 + .../commands/_3rs8qy_awg/trigger.py | 1 + src/tm_devices/commands/_3rs8qy_awg/wlist.py | 41 +- .../commands/_3skc3w_dpo/trigger.py | 31 +- .../commands/_3tjgb2_dpo/trigger.py | 31 +- .../commands/_4jiykk_dpo/channelmapping.py | 1 + .../commands/_4jiykk_dpo/counter.py | 1 + .../commands/_4jiykk_dpo/errordetector.py | 21 +- .../commands/_4jiykk_dpo/idnmultiscope.py | 1 + .../commands/_4jiykk_dpo/linktraining.py | 11 +- src/tm_devices/commands/_4jiykk_dpo/rosc.py | 1 + .../commands/_4jiykk_dpo/trigger.py | 31 +- .../commands/_53md2e_dpomso/fpanel.py | 1 + .../commands/_561g9r_mso/trigger.py | 31 +- src/tm_devices/commands/_5ri0nj_dpomso/bus.py | 1 + .../commands/_5vmwut_dpodsamso/trigger.py | 31 +- .../_5xwdsk_dpodsamso/errordetector.py | 51 +- .../commands/_5y90wx_dpodsamso/dpojet.py | 1 + .../commands/_5yyb4r_mso/trigger.py | 31 +- src/tm_devices/commands/_60xy3r_smu/buffer.py | 1 + src/tm_devices/commands/_60xy3r_smu/script.py | 1 + src/tm_devices/commands/_60xy3r_smu/smu.py | 1 + .../commands/_60xy3r_smu/upgrade.py | 1 + src/tm_devices/commands/_6ocqvh_smu/buffer.py | 1 + src/tm_devices/commands/_6srh1x_smu/smu.py | 1 + .../commands/_6srh1x_smu/upgrade.py | 1 + src/tm_devices/commands/_6vynmi_smu/acal.py | 1 + src/tm_devices/commands/_6vynmi_smu/smu.py | 1 + .../commands/_6vynmi_smu/trigger.py | 1 + .../commands/_6vynmi_smu/upgrade.py | 1 + .../commands/_6w7311_smu/trigger.py | 1 + src/tm_devices/commands/_6xiuc2_smu/buffer.py | 1 + src/tm_devices/commands/_6xiuc2_smu/smu.py | 1 + .../commands/_6xiuc2_smu/upgrade.py | 1 + .../commands/_7kqm9p_smu/buffervar.py | 1 + .../commands/_7kqm9p_smu/display.py | 1 + .../commands/_7kqm9p_smu/tsplink.py | 1 + src/tm_devices/commands/_7kqm9p_smu/tspnet.py | 1 + src/tm_devices/commands/_7ryhce_smu/status.py | 1 + src/tm_devices/commands/_7s2p1p_smu/beeper.py | 1 + .../commands/_7s2p1p_smu/buffervar.py | 1 + .../commands/_7s2p1p_smu/dataqueue.py | 1 + src/tm_devices/commands/_7s2p1p_smu/digio.py | 1 + .../commands/_7s2p1p_smu/display.py | 1 + .../commands/_7s2p1p_smu/errorqueue.py | 1 + .../commands/_7s2p1p_smu/eventlog.py | 1 + src/tm_devices/commands/_7s2p1p_smu/format.py | 1 + src/tm_devices/commands/_7s2p1p_smu/lan.py | 1 + .../commands/_7s2p1p_smu/localnode.py | 1 + src/tm_devices/commands/_7s2p1p_smu/serial.py | 1 + src/tm_devices/commands/_7s2p1p_smu/smux.py | 1 + src/tm_devices/commands/_7s2p1p_smu/status.py | 1 + .../commands/_7s2p1p_smu/trigger.py | 1 + .../commands/_7s2p1p_smu/tsplink.py | 1 + src/tm_devices/commands/_7s2p1p_smu/tspnet.py | 1 + src/tm_devices/commands/_7s43m8_smu/status.py | 1 + src/tm_devices/commands/_7s6wr5_smu/status.py | 1 + .../commands/_8ojdkz_smu/display.py | 1 + src/tm_devices/commands/_8ojdkz_smu/node.py | 1 + src/tm_devices/commands/_8ojdkz_smu/smux.py | 1 + src/tm_devices/commands/_8ojdkz_smu/status.py | 1 + src/tm_devices/commands/_8wm55i_smu/smux.py | 1 + src/tm_devices/commands/_9kezla_smu/smux.py | 1 + src/tm_devices/commands/_9mzp2j_smu/digio.py | 1 + .../commands/_9mzp2j_smu/display.py | 1 + .../commands/_9mzp2j_smu/tsplink.py | 1 + .../commands/_9ncc6e_smu/display.py | 1 + src/tm_devices/commands/_9nnkq7_smu/status.py | 1 + src/tm_devices/commands/_9slyux_smu/status.py | 1 + src/tm_devices/commands/__init__.py | 1 + src/tm_devices/commands/_afg3k_commands.py | 1 + src/tm_devices/commands/_afg3kb_commands.py | 1 + src/tm_devices/commands/_afg3kc_commands.py | 1 + src/tm_devices/commands/_ahkybr_smu/beeper.py | 1 + .../commands/_ahkybr_smu/buffervar.py | 1 + .../commands/_ahkybr_smu/eventlog.py | 1 + src/tm_devices/commands/_ahkybr_smu/lan.py | 1 + src/tm_devices/commands/_ahkybr_smu/os.py | 1 + src/tm_devices/commands/_ahkybr_smu/script.py | 1 + .../commands/_ahkybr_smu/scriptvar.py | 1 + .../commands/_ahkybr_smu/setup_1.py | 1 + src/tm_devices/commands/_ahkybr_smu/tspnet.py | 1 + .../commands/_aih9e2_smu/trigger.py | 1 + src/tm_devices/commands/_ak4990_smu/smux.py | 1 + src/tm_devices/commands/_am6pcr_smu/smux.py | 1 + src/tm_devices/commands/_am6pcr_smu/status.py | 1 + src/tm_devices/commands/_amm5lc_smu/digio.py | 1 + .../commands/_amm5lc_smu/tsplink.py | 1 + src/tm_devices/commands/_aostep_smu/serial.py | 1 + .../commands/_aqr1t1_smu/localnode.py | 1 + .../commands/_as1ejq_smu/localnode.py | 1 + src/tm_devices/commands/_as1ejq_smu/smux.py | 1 + src/tm_devices/commands/_as1ejq_smu/status.py | 1 + .../commands/_at7jl1_smu/display.py | 1 + src/tm_devices/commands/_au597k_smu/digio.py | 1 + src/tm_devices/commands/_au597k_smu/format.py | 1 + .../commands/_au597k_smu/tsplink.py | 1 + src/tm_devices/commands/_auyr50_smu/format.py | 1 + .../commands/_auyr50_smu/localnode.py | 1 + src/tm_devices/commands/_auyr50_smu/node.py | 1 + .../commands/_avh0iw_smu/display.py | 1 + .../commands/_avh0iw_smu/trigger.py | 1 + src/tm_devices/commands/_awg5200_commands.py | 1 + src/tm_devices/commands/_awg5k_commands.py | 1 + src/tm_devices/commands/_awg5kc_commands.py | 1 + src/tm_devices/commands/_awg70ka_commands.py | 1 + src/tm_devices/commands/_awg70kb_commands.py | 1 + src/tm_devices/commands/_awg7k_commands.py | 1 + src/tm_devices/commands/_awg7kc_commands.py | 1 + src/tm_devices/commands/_awhjao_smu/status.py | 1 + .../commands/_by991s_smudaq/digio.py | 1 + .../commands/_by991s_smudaq/status.py | 1 + src/tm_devices/commands/_canxny_daq/buffer.py | 1 + .../commands/_canxny_daq/buffervar.py | 1 + .../commands/_canxny_daq/channel.py | 1 + .../commands/_canxny_daq/display.py | 1 + src/tm_devices/commands/_canxny_daq/dmm.py | 1 + src/tm_devices/commands/_canxny_daq/scan.py | 1 + src/tm_devices/commands/_canxny_daq/slot.py | 1 + .../commands/_canxny_daq/trigger.py | 1 + .../commands/_canxny_daq/tsplink.py | 1 + .../commands/_canxny_daq/upgrade.py | 1 + src/tm_devices/commands/_d6b496_dmm/acal.py | 1 + src/tm_devices/commands/_d6b496_dmm/buffer.py | 1 + .../commands/_d6b496_dmm/buffervar.py | 1 + .../commands/_d6b496_dmm/display.py | 1 + src/tm_devices/commands/_d6b496_dmm/dmm.py | 1 + src/tm_devices/commands/_d6b496_dmm/fan.py | 1 + .../commands/_d6b496_dmm/localnode.py | 1 + .../commands/_d6b496_dmm/trigger.py | 1 + src/tm_devices/commands/_d83qe0_dmm/buffer.py | 1 + .../commands/_d83qe0_dmm/buffervar.py | 1 + .../commands/_d83qe0_dmm/channel.py | 1 + .../commands/_d83qe0_dmm/display.py | 1 + src/tm_devices/commands/_d83qe0_dmm/dmm.py | 1 + src/tm_devices/commands/_d83qe0_dmm/scan.py | 1 + src/tm_devices/commands/_d83qe0_dmm/slot.py | 1 + .../commands/_d83qe0_dmm/trigger.py | 1 + src/tm_devices/commands/_daq6510_commands.py | 1 + .../commands/_dawv9y_smudaqdmm/localnode.py | 1 + .../commands/_dbdq3i_smudaqdmm/beeper.py | 1 + .../commands/_dbdq3i_smudaqdmm/eventlog.py | 1 + .../commands/_dbdq3i_smudaqdmm/file.py | 1 + .../commands/_dbdq3i_smudaqdmm/format.py | 1 + .../commands/_dbdq3i_smudaqdmm/lan.py | 1 + .../commands/_dbdq3i_smudaqdmm/scriptvar.py | 1 + .../commands/_dbdq3i_smudaqdmm/timer.py | 1 + src/tm_devices/commands/_dbqd7k_dmm/digio.py | 1 + src/tm_devices/commands/_dbqd7k_dmm/node.py | 1 + src/tm_devices/commands/_dbqd7k_dmm/status.py | 1 + .../commands/_dbqd7k_dmm/tsplink.py | 1 + src/tm_devices/commands/_dbqd7k_dmm/tspnet.py | 1 + .../commands/_dbqd7k_dmm/upgrade.py | 1 + src/tm_devices/commands/_dcpheg_daqdmm/smu.py | 1 + .../commands/_dd4xnb_smudaqdmm/script.py | 1 + src/tm_devices/commands/_dmm6500_commands.py | 1 + src/tm_devices/commands/_dmm7510_commands.py | 1 + src/tm_devices/commands/_dpo2k_commands.py | 1 + src/tm_devices/commands/_dpo2kb_commands.py | 1 + src/tm_devices/commands/_dpo4k_commands.py | 1 + src/tm_devices/commands/_dpo4kb_commands.py | 1 + src/tm_devices/commands/_dpo5k_commands.py | 1 + src/tm_devices/commands/_dpo5kb_commands.py | 1 + src/tm_devices/commands/_dpo70kc_commands.py | 1 + src/tm_devices/commands/_dpo70kd_commands.py | 1 + src/tm_devices/commands/_dpo70kdx_commands.py | 1 + src/tm_devices/commands/_dpo70ksx_commands.py | 1 + src/tm_devices/commands/_dpo7k_commands.py | 1 + src/tm_devices/commands/_dpo7kc_commands.py | 1 + src/tm_devices/commands/_dsa70kc_commands.py | 1 + src/tm_devices/commands/_dsa70kd_commands.py | 1 + .../commands/_e3e9uu_lpdmso/acquire.py | 1 + .../commands/_e3e9uu_lpdmso/actonevent.py | 1 + .../commands/_e3e9uu_lpdmso/application.py | 1 + .../commands/_e3e9uu_lpdmso/auxout.py | 1 + src/tm_devices/commands/_e3e9uu_lpdmso/bus.py | 1 + .../commands/_e3e9uu_lpdmso/callouts.py | 1 + src/tm_devices/commands/_e3e9uu_lpdmso/ch.py | 1 + .../commands/_e3e9uu_lpdmso/data.py | 1 + .../commands/_e3e9uu_lpdmso/diag.py | 1 + .../commands/_e3e9uu_lpdmso/diggrp.py | 1 + .../commands/_e3e9uu_lpdmso/display.py | 21 +- src/tm_devices/commands/_e3e9uu_lpdmso/dvm.py | 1 + .../commands/_e3e9uu_lpdmso/eyemask.py | 1 + .../commands/_e3e9uu_lpdmso/fpanel.py | 1 + .../commands/_e3e9uu_lpdmso/histogram.py | 1 + .../commands/_e3e9uu_lpdmso/horizontal.py | 1 + .../commands/_e3e9uu_lpdmso/license.py | 1 + .../commands/_e3e9uu_lpdmso/mask.py | 1 + .../commands/_e3e9uu_lpdmso/math.py | 1 + .../commands/_e3e9uu_lpdmso/matharbflt.py | 1 + .../commands/_e3e9uu_lpdmso/measurement.py | 31 +- .../commands/_e3e9uu_lpdmso/peakstable.py | 1 + .../commands/_e3e9uu_lpdmso/pilogger.py | 1 + .../commands/_e3e9uu_lpdmso/plot.py | 1 + .../commands/_e3e9uu_lpdmso/power.py | 1 + src/tm_devices/commands/_e3e9uu_lpdmso/ref.py | 1 + .../commands/_e3e9uu_lpdmso/rosc.py | 1 + .../commands/_e3e9uu_lpdmso/save.py | 1 + .../commands/_e3e9uu_lpdmso/saveon.py | 1 + .../commands/_e3e9uu_lpdmso/saveonevent.py | 1 + .../commands/_e3e9uu_lpdmso/search.py | 141 ++--- .../commands/_e3e9uu_lpdmso/searchtable.py | 1 + .../commands/_e3e9uu_lpdmso/select.py | 1 + src/tm_devices/commands/_e3e9uu_lpdmso/sv.py | 1 + .../commands/_e3e9uu_lpdmso/touchscreen.py | 1 + .../commands/_e3e9uu_lpdmso/trigger.py | 1 + .../commands/_e3e9uu_lpdmso/tstamptable.py | 1 + .../commands/_e3e9uu_lpdmso/visual.py | 1 + src/tm_devices/commands/_e3h2zs_lpdmso/afg.py | 1 + .../_e3h2zs_lpdmso/autosavepitimeout.py | 1 + .../_e3h2zs_lpdmso/autosaveuitimeout.py | 1 + .../commands/_e3h2zs_lpdmso/autoset.py | 1 + .../commands/_e3h2zs_lpdmso/bustable.py | 1 + .../commands/_e3h2zs_lpdmso/calibrate.py | 1 + .../commands/_e3h2zs_lpdmso/configuration.py | 1 + .../commands/_e3h2zs_lpdmso/connected.py | 1 + .../commands/_e3h2zs_lpdmso/curve.py | 1 + .../commands/_e3h2zs_lpdmso/curvestream.py | 1 + .../commands/_e3h2zs_lpdmso/customtable.py | 1 + .../commands/_e3h2zs_lpdmso/date.py | 1 + .../commands/_e3h2zs_lpdmso/ethernet.py | 1 + .../commands/_e3h2zs_lpdmso/filesystem.py | 1 + .../commands/_e3h2zs_lpdmso/mainwindow.py | 1 + .../commands/_e3h2zs_lpdmso/meastable.py | 1 + .../commands/_e3h2zs_lpdmso/recall.py | 1 + .../commands/_e3h2zs_lpdmso/socketserver.py | 1 + .../commands/_e3h2zs_lpdmso/time.py | 1 + .../commands/_e3h2zs_lpdmso/undo.py | 1 + .../commands/_e3h2zs_lpdmso/usbdevice.py | 1 + .../commands/_e3h2zs_lpdmso/vertical.py | 1 + .../commands/_e3h2zs_lpdmso/wfmoutpre.py | 1 + src/tm_devices/commands/_e3pief_ss/beeper.py | 1 + .../commands/_e3pief_ss/buffervar.py | 1 + src/tm_devices/commands/_e3pief_ss/channel.py | 1 + src/tm_devices/commands/_e3pief_ss/comm.py | 1 + src/tm_devices/commands/_e3pief_ss/digio.py | 1 + src/tm_devices/commands/_e3pief_ss/display.py | 1 + src/tm_devices/commands/_e3pief_ss/dmm.py | 1 + .../commands/_e3pief_ss/eventlog.py | 1 + src/tm_devices/commands/_e3pief_ss/format.py | 1 + src/tm_devices/commands/_e3pief_ss/lan.py | 1 + .../commands/_e3pief_ss/localnode.py | 1 + src/tm_devices/commands/_e3pief_ss/memory.py | 1 + src/tm_devices/commands/_e3pief_ss/os.py | 1 + src/tm_devices/commands/_e3pief_ss/ptp.py | 1 + src/tm_devices/commands/_e3pief_ss/scan.py | 1 + .../commands/_e3pief_ss/schedule.py | 1 + src/tm_devices/commands/_e3pief_ss/script.py | 1 + .../commands/_e3pief_ss/scriptvar.py | 1 + src/tm_devices/commands/_e3pief_ss/setup_1.py | 1 + src/tm_devices/commands/_e3pief_ss/slot.py | 1 + src/tm_devices/commands/_e3pief_ss/status.py | 1 + src/tm_devices/commands/_e3pief_ss/trigger.py | 1 + src/tm_devices/commands/_e3pief_ss/tsplink.py | 1 + src/tm_devices/commands/_e3pief_ss/upgrade.py | 1 + .../commands/_e4de2d_lpdmsomdo/clear.py | 1 + .../commands/_e6606z_lpdmsomdodpo/pause.py | 1 + .../_e6lgg1_lpdmsodpomdo/totaluptime.py | 1 + .../commands/_e7aqno_smudaqss/node.py | 1 + .../commands/_eat5s3_smudaqdmmss/dataqueue.py | 1 + .../commands/_eat5s3_smudaqdmmss/fs.py | 1 + .../_eat5s3_smudaqdmmss/userstring.py | 1 + .../commands/_ed9nkc_daqss/tspnet.py | 1 + src/tm_devices/commands/_efap3f_smuss/bit.py | 1 + .../commands/_efap3f_smuss/errorqueue.py | 1 + src/tm_devices/commands/_efap3f_smuss/io.py | 1 + .../commands/_efap3f_smuss/timer.py | 1 + .../commands/_eg5ll2_smudaqdmmss/gpib.py | 1 + .../commands/_ffz2xs_dpodsamso/bus.py | 1 + .../commands/_fhrp27_msodpomdodsa/curve.py | 1 + .../commands/_fhrp27_msodpomdodsa/date.py | 1 + .../commands/_fhrp27_msodpomdodsa/mathvar.py | 1 + .../_fhrp27_msodpomdodsa/save_and_recall.py | 1 + .../commands/_fk3z56_dpodsamso/acquire.py | 1 + .../commands/_fk3z56_dpodsamso/allocate.py | 1 + .../commands/_fk3z56_dpodsamso/application.py | 1 + .../commands/_fk3z56_dpodsamso/autoset.py | 1 + .../commands/_fk3z56_dpodsamso/auxin.py | 1 + .../commands/_fk3z56_dpodsamso/auxout.py | 1 + .../commands/_fk3z56_dpodsamso/bell.py | 1 + .../commands/_fk3z56_dpodsamso/calibrate.py | 1 + .../commands/_fk3z56_dpodsamso/ch.py | 1 + .../commands/_fk3z56_dpodsamso/clear.py | 1 + .../commands/_fk3z56_dpodsamso/cmdbatch.py | 1 + .../commands/_fk3z56_dpodsamso/cq.py | 1 + .../commands/_fk3z56_dpodsamso/cursor.py | 1 + .../commands/_fk3z56_dpodsamso/curvenext.py | 1 + .../commands/_fk3z56_dpodsamso/curvestream.py | 1 + .../commands/_fk3z56_dpodsamso/custom.py | 1 + .../commands/_fk3z56_dpodsamso/d.py | 1 + .../commands/_fk3z56_dpodsamso/data.py | 1 + .../commands/_fk3z56_dpodsamso/delete.py | 1 + .../commands/_fk3z56_dpodsamso/diag.py | 1 + .../commands/_fk3z56_dpodsamso/display.py | 1 + .../commands/_fk3z56_dpodsamso/email.py | 1 + .../commands/_fk3z56_dpodsamso/export.py | 1 + .../commands/_fk3z56_dpodsamso/fastacq.py | 1 + .../commands/_fk3z56_dpodsamso/filesystem.py | 1 + .../commands/_fk3z56_dpodsamso/gpibusb.py | 1 + .../commands/_fk3z56_dpodsamso/hardcopy.py | 1 + .../commands/_fk3z56_dpodsamso/hdr.py | 1 + .../commands/_fk3z56_dpodsamso/histogram.py | 1 + .../commands/_fk3z56_dpodsamso/horizontal.py | 231 +++---- .../commands/_fk3z56_dpodsamso/limit.py | 1 + .../commands/_fk3z56_dpodsamso/mark.py | 1 + .../commands/_fk3z56_dpodsamso/mask.py | 1 + .../commands/_fk3z56_dpodsamso/math.py | 1 + .../commands/_fk3z56_dpodsamso/matharbflt.py | 1 + .../commands/_fk3z56_dpodsamso/mch.py | 1 + .../commands/_fk3z56_dpodsamso/measurement.py | 21 +- .../commands/_fk3z56_dpodsamso/multiscope.py | 1 + .../commands/_fk3z56_dpodsamso/opcextended.py | 1 + .../commands/_fk3z56_dpodsamso/pcenable.py | 1 + .../commands/_fk3z56_dpodsamso/recall.py | 1 + .../commands/_fk3z56_dpodsamso/ref.py | 1 + .../commands/_fk3z56_dpodsamso/save.py | 1 + .../_fk3z56_dpodsamso/save_and_recall.py | 1 + .../commands/_fk3z56_dpodsamso/saveon.py | 1 + .../commands/_fk3z56_dpodsamso/search.py | 563 +++++++++--------- .../commands/_fk3z56_dpodsamso/select.py | 1 + .../commands/_fk3z56_dpodsamso/setup_1.py | 1 + .../commands/_fk3z56_dpodsamso/system.py | 1 + .../commands/_fk3z56_dpodsamso/teklink.py | 1 + .../commands/_fk3z56_dpodsamso/test.py | 1 + .../commands/_fk3z56_dpodsamso/trig.py | 1 + .../commands/_fk3z56_dpodsamso/usbtmc.py | 1 + .../commands/_fk3z56_dpodsamso/visual.py | 1 + .../_fk3z56_dpodsamso/wavfrmstream.py | 1 + .../commands/_fk3z56_dpodsamso/wfminpre.py | 1 + .../commands/_fk3z56_dpodsamso/wfmoutpre.py | 1 + .../commands/_fk3z56_dpodsamso/wfmpre.py | 1 + .../commands/_fk3z56_dpodsamso/zoom.py | 1 + .../commands/_fkjfe8_msodpodsa/time.py | 1 + .../commands/_fn2qbf_msodpo/errordetector.py | 21 +- .../commands/_fn2qbf_msodpo/trigger.py | 31 +- .../commands/_fpx9s1_dpodsamso/counter.py | 1 + .../_fpx9s1_dpodsamso/linktraining.py | 11 +- .../commands/_fpx9s1_dpodsamso/rosc.py | 1 + .../calibration.py | 1 + .../miscellaneous.py | 1 + .../status_and_error.py | 1 + .../status_and_error.py | 1 + .../status_and_error.py | 1 + .../commands/_fuzvln_lpdmsodpodsa/alias.py | 1 + .../commands/_fuzvln_lpdmsodpodsa/header.py | 1 + .../_fuzvln_lpdmsodpodsa/status_and_error.py | 1 + .../commands/_fuzvln_lpdmsodpodsa/verbose.py | 1 + .../commands/_fx54ua_lpdmsodpomdodsa/allev.py | 1 + .../commands/_fx54ua_lpdmsodpomdodsa/busy.py | 1 + .../commands/_fx54ua_lpdmsodpomdodsa/dese.py | 1 + .../commands/_fx54ua_lpdmsodpomdodsa/event.py | 1 + .../commands/_fx54ua_lpdmsodpomdodsa/evmsg.py | 1 + .../commands/_fx54ua_lpdmsodpomdodsa/evqty.py | 1 + .../_fx54ua_lpdmsodpomdodsa/factory.py | 1 + .../commands/_fx54ua_lpdmsodpomdodsa/id.py | 1 + .../_fx54ua_lpdmsodpomdodsa/miscellaneous.py | 1 + .../_fx54ua_lpdmsodpomdodsa/newpass.py | 1 + .../_fx54ua_lpdmsodpomdodsa/password.py | 1 + .../commands/_fx54ua_lpdmsodpomdodsa/rem.py | 1 + .../commands/_fx54ua_lpdmsodpomdodsa/set.py | 1 + .../status_and_error.py | 1 + .../_fx54ua_lpdmsodpomdodsa/teksecure.py | 1 + .../_fx54ua_lpdmsodpomdodsa/wavfrm.py | 1 + .../commands/_fzn174_lpdmsodpomdodsa/lock.py | 1 + .../_fzn174_lpdmsodpomdodsa/unlock.py | 1 + src/tm_devices/commands/_helpers/__init__.py | 1 + .../commands/_helpers/generic_commands.py | 1 + .../commands/_helpers/scpi_commands.py | 1 + .../commands/_helpers/tsp_commands.py | 1 + src/tm_devices/commands/_lpd6_commands.py | 1 + src/tm_devices/commands/_mdo3_commands.py | 1 + src/tm_devices/commands/_mdo3k_commands.py | 1 + src/tm_devices/commands/_mdo4k_commands.py | 1 + src/tm_devices/commands/_mdo4kb_commands.py | 1 + src/tm_devices/commands/_mdo4kc_commands.py | 1 + src/tm_devices/commands/_mso2_commands.py | 1 + src/tm_devices/commands/_mso2k_commands.py | 1 + src/tm_devices/commands/_mso2kb_commands.py | 1 + src/tm_devices/commands/_mso4_commands.py | 1 + src/tm_devices/commands/_mso4b_commands.py | 1 + src/tm_devices/commands/_mso4k_commands.py | 1 + src/tm_devices/commands/_mso4kb_commands.py | 1 + src/tm_devices/commands/_mso5_commands.py | 1 + src/tm_devices/commands/_mso5b_commands.py | 1 + src/tm_devices/commands/_mso5k_commands.py | 1 + src/tm_devices/commands/_mso5kb_commands.py | 1 + src/tm_devices/commands/_mso5lp_commands.py | 1 + src/tm_devices/commands/_mso6_commands.py | 1 + src/tm_devices/commands/_mso6b_commands.py | 1 + src/tm_devices/commands/_mso70kc_commands.py | 1 + src/tm_devices/commands/_mso70kdx_commands.py | 1 + src/tm_devices/commands/_smu2450_commands.py | 1 + src/tm_devices/commands/_smu2460_commands.py | 1 + src/tm_devices/commands/_smu2461_commands.py | 1 + src/tm_devices/commands/_smu2470_commands.py | 1 + src/tm_devices/commands/_smu2601b_commands.py | 1 + .../commands/_smu2601b_pulse_commands.py | 1 + src/tm_devices/commands/_smu2602b_commands.py | 1 + src/tm_devices/commands/_smu2604b_commands.py | 1 + src/tm_devices/commands/_smu2606b_commands.py | 1 + src/tm_devices/commands/_smu2611b_commands.py | 1 + src/tm_devices/commands/_smu2612b_commands.py | 1 + src/tm_devices/commands/_smu2614b_commands.py | 1 + src/tm_devices/commands/_smu2634b_commands.py | 1 + src/tm_devices/commands/_smu2635b_commands.py | 1 + src/tm_devices/commands/_smu2636b_commands.py | 1 + src/tm_devices/commands/_smu2651a_commands.py | 1 + src/tm_devices/commands/_smu2657a_commands.py | 1 + src/tm_devices/commands/_ss3706a_commands.py | 1 + .../commands/_u301s_msodpo/acquire.py | 1 + .../commands/_u301s_msodpo/alias.py | 1 + .../commands/_u301s_msodpo/autoset.py | 1 + .../commands/_u301s_msodpo/auxin.py | 1 + src/tm_devices/commands/_u301s_msodpo/bus.py | 1 + .../commands/_u301s_msodpo/calibrate.py | 1 + src/tm_devices/commands/_u301s_msodpo/ch.py | 1 + .../commands/_u301s_msodpo/cursor.py | 1 + src/tm_devices/commands/_u301s_msodpo/d.py | 1 + src/tm_devices/commands/_u301s_msodpo/data.py | 1 + src/tm_devices/commands/_u301s_msodpo/diag.py | 1 + .../commands/_u301s_msodpo/display.py | 1 + .../commands/_u301s_msodpo/ethernet.py | 1 + .../commands/_u301s_msodpo/filesystem.py | 1 + .../commands/_u301s_msodpo/filtervu.py | 1 + .../commands/_u301s_msodpo/fpanel.py | 1 + .../commands/_u301s_msodpo/gpibusb.py | 1 + .../commands/_u301s_msodpo/hardcopy.py | 1 + .../commands/_u301s_msodpo/horizontal.py | 1 + src/tm_devices/commands/_u301s_msodpo/mark.py | 1 + .../commands/_u301s_msodpo/math1.py | 1 + .../commands/_u301s_msodpo/measurement.py | 1 + .../commands/_u301s_msodpo/pictbridge.py | 1 + .../commands/_u301s_msodpo/recall.py | 1 + src/tm_devices/commands/_u301s_msodpo/ref.py | 1 + src/tm_devices/commands/_u301s_msodpo/save.py | 1 + .../commands/_u301s_msodpo/search.py | 141 ++--- .../commands/_u301s_msodpo/select.py | 1 + .../commands/_u301s_msodpo/trigger.py | 1 + .../commands/_u301s_msodpo/wfminpre.py | 1 + .../commands/_u301s_msodpo/wfmoutpre.py | 1 + src/tm_devices/commands/_u301s_msodpo/zoom.py | 1 + src/tm_devices/commands/_ujuvb_mdo/acquire.py | 1 + .../commands/_ujuvb_mdo/configuration.py | 1 + src/tm_devices/commands/_ujuvb_mdo/cursor.py | 1 + src/tm_devices/commands/_ujuvb_mdo/deskew.py | 1 + src/tm_devices/commands/_ujuvb_mdo/display.py | 1 + src/tm_devices/commands/_ujuvb_mdo/lock.py | 1 + src/tm_devices/commands/_ujuvb_mdo/mask.py | 1 + .../commands/_ujuvb_mdo/measurement.py | 1 + src/tm_devices/commands/_ujuvb_mdo/message.py | 1 + src/tm_devices/commands/_ujuvb_mdo/recall.py | 1 + src/tm_devices/commands/_ujuvb_mdo/rf.py | 1 + src/tm_devices/commands/_ujuvb_mdo/rrb.py | 1 + src/tm_devices/commands/_ujuvb_mdo/search.py | 111 ++-- src/tm_devices/commands/_ujuvb_mdo/select.py | 1 + src/tm_devices/commands/_ujuvb_mdo/setup1.py | 1 + src/tm_devices/commands/_ujuvb_mdo/trigger.py | 1 + src/tm_devices/commands/_usaa3_mdo/rf.py | 1 + src/tm_devices/commands/_usaa3_mdo/search.py | 111 ++-- src/tm_devices/commands/_usaa3_mdo/trigger.py | 1 + src/tm_devices/components/__init__.py | 1 + src/tm_devices/components/dm_config_parser.py | 1 + src/tm_devices/device_manager.py | 1 + .../driver_mixins/analysis_object_mixins.py | 1 + .../driver_mixins/class_extension_mixin.py | 7 +- .../driver_mixins/licensed_mixin.py | 1 + .../driver_mixins/usb_drives_mixin.py | 1 + src/tm_devices/drivers/__init__.py | 1 + src/tm_devices/drivers/api/api_device.py | 1 + .../api/rest_api/margin_testers/__init__.py | 1 + .../rest_api/margin_testers/margin_tester.py | 1 + .../api/rest_api/margin_testers/tmt4.py | 1 + .../drivers/api/rest_api/rest_api_device.py | 1 + src/tm_devices/drivers/device.py | 1 + src/tm_devices/drivers/device_type_classes.py | 1 + .../drivers/pi/_ieee488_2_commands.py | 1 + .../pi/data_acquisition_systems/__init__.py | 1 + .../pi/data_acquisition_systems/daq6510.py | 1 + .../data_acquisition_system.py | 1 + .../pi/digital_multimeters/__init__.py | 1 + .../digital_multimeters/digital_multimeter.py | 1 + .../digital_multimeters/dmm6500/__init__.py | 1 + .../pi/digital_multimeters/dmm6500/dmm6500.py | 1 + .../digital_multimeters/dmm7500/__init__.py | 1 + .../pi/digital_multimeters/dmm7500/dmm7500.py | 1 + .../pi/digital_multimeters/dmm7500/dmm7510.py | 1 + .../pi/digital_multimeters/dmm7500/dmm7512.py | 1 + src/tm_devices/drivers/pi/pi_device.py | 1 + .../drivers/pi/power_supplies/__init__.py | 1 + .../drivers/pi/power_supplies/power_supply.py | 1 + .../pi/power_supplies/psu2200/__init__.py | 1 + .../pi/power_supplies/psu2200/psu2200.py | 1 + .../pi/power_supplies/psu2200/psu2220.py | 1 + .../pi/power_supplies/psu2200/psu2230.py | 1 + .../pi/power_supplies/psu2200/psu2231.py | 1 + .../pi/power_supplies/psu2200/psu2231a.py | 1 + src/tm_devices/drivers/pi/scopes/__init__.py | 1 + src/tm_devices/drivers/pi/scopes/scope.py | 1 + .../drivers/pi/scopes/tekscope/__init__.py | 1 + .../drivers/pi/scopes/tekscope/lpd6.py | 1 + .../drivers/pi/scopes/tekscope/mso2.py | 1 + .../drivers/pi/scopes/tekscope/mso4.py | 1 + .../drivers/pi/scopes/tekscope/mso4b.py | 1 + .../drivers/pi/scopes/tekscope/mso5.py | 1 + .../drivers/pi/scopes/tekscope/mso5b.py | 1 + .../drivers/pi/scopes/tekscope/mso5lp.py | 1 + .../drivers/pi/scopes/tekscope/mso6.py | 1 + .../drivers/pi/scopes/tekscope/mso6b.py | 1 + .../drivers/pi/scopes/tekscope/tekscope.py | 1 + .../drivers/pi/scopes/tekscope/tekscopesw.py | 1 + .../drivers/pi/scopes/tekscope_2k/__init__.py | 1 + .../pi/scopes/tekscope_2k/tekscope_2k.py | 1 + .../pi/scopes/tekscope_3k_4k/__init__.py | 1 + .../drivers/pi/scopes/tekscope_3k_4k/mdo3.py | 1 + .../pi/scopes/tekscope_3k_4k/mdo4kb.py | 1 + .../scopes/tekscope_3k_4k/tekscope_3k_4k.py | 1 + .../pi/scopes/tekscope_5k_7k_70k/__init__.py | 1 + .../pi/scopes/tekscope_5k_7k_70k/dpo5k.py | 1 + .../pi/scopes/tekscope_5k_7k_70k/dpo5kb.py | 1 + .../pi/scopes/tekscope_5k_7k_70k/dpo70k.py | 1 + .../pi/scopes/tekscope_5k_7k_70k/dpo70kc.py | 1 + .../pi/scopes/tekscope_5k_7k_70k/dpo70kd.py | 1 + .../pi/scopes/tekscope_5k_7k_70k/dpo70kdx.py | 1 + .../pi/scopes/tekscope_5k_7k_70k/dpo70ksx.py | 1 + .../pi/scopes/tekscope_5k_7k_70k/dpo7k.py | 1 + .../pi/scopes/tekscope_5k_7k_70k/dpo7kc.py | 1 + .../pi/scopes/tekscope_5k_7k_70k/dsa70k.py | 1 + .../pi/scopes/tekscope_5k_7k_70k/dsa70kc.py | 1 + .../pi/scopes/tekscope_5k_7k_70k/dsa70kd.py | 1 + .../pi/scopes/tekscope_5k_7k_70k/mso5k.py | 1 + .../pi/scopes/tekscope_5k_7k_70k/mso5kb.py | 1 + .../pi/scopes/tekscope_5k_7k_70k/mso70k.py | 1 + .../pi/scopes/tekscope_5k_7k_70k/mso70kc.py | 1 + .../pi/scopes/tekscope_5k_7k_70k/mso70kdx.py | 1 + .../tekscope_5k_7k_70k/tekscope_5k_7k_70k.py | 1 + .../drivers/pi/scopes/tso/__init__.py | 1 + src/tm_devices/drivers/pi/scopes/tso/tsovu.py | 1 + .../drivers/pi/signal_sources/__init__.py | 1 + .../pi/signal_sources/afgs/__init__.py | 1 + .../drivers/pi/signal_sources/afgs/afg.py | 1 + .../drivers/pi/signal_sources/afgs/afg31k.py | 1 + .../drivers/pi/signal_sources/afgs/afg3k.py | 1 + .../drivers/pi/signal_sources/afgs/afg3kb.py | 1 + .../drivers/pi/signal_sources/afgs/afg3kc.py | 1 + .../pi/signal_sources/awgs/__init__.py | 1 + .../drivers/pi/signal_sources/awgs/awg.py | 1 + .../drivers/pi/signal_sources/awgs/awg5200.py | 1 + .../drivers/pi/signal_sources/awgs/awg5k.py | 1 + .../drivers/pi/signal_sources/awgs/awg5kb.py | 1 + .../drivers/pi/signal_sources/awgs/awg5kc.py | 1 + .../drivers/pi/signal_sources/awgs/awg70ka.py | 1 + .../drivers/pi/signal_sources/awgs/awg70kb.py | 1 + .../drivers/pi/signal_sources/awgs/awg7k.py | 1 + .../drivers/pi/signal_sources/awgs/awg7kb.py | 1 + .../drivers/pi/signal_sources/awgs/awg7kc.py | 1 + .../pi/signal_sources/signal_source.py | 1 + .../pi/source_measure_units/__init__.py | 1 + .../source_measure_units/smu2400/__init__.py | 1 + .../source_measure_units/smu2400/smu2400.py | 1 + .../smu2400/smu2400_interactive.py | 1 + .../smu2400/smu2400_standard.py | 1 + .../source_measure_units/smu2400/smu2401.py | 1 + .../source_measure_units/smu2400/smu2410.py | 1 + .../source_measure_units/smu2400/smu2450.py | 1 + .../source_measure_units/smu2400/smu2460.py | 1 + .../source_measure_units/smu2400/smu2461.py | 1 + .../source_measure_units/smu2400/smu2470.py | 1 + .../source_measure_units/smu2600/__init__.py | 1 + .../source_measure_units/smu2600/smu2600.py | 1 + .../source_measure_units/smu2600/smu2600a.py | 1 + .../source_measure_units/smu2600/smu2600b.py | 1 + .../source_measure_units/smu2600/smu2601a.py | 1 + .../source_measure_units/smu2600/smu2601b.py | 1 + .../smu2600/smu2601b_pulse.py | 1 + .../source_measure_units/smu2600/smu2602a.py | 1 + .../source_measure_units/smu2600/smu2602b.py | 1 + .../source_measure_units/smu2600/smu2604a.py | 1 + .../source_measure_units/smu2600/smu2604b.py | 1 + .../source_measure_units/smu2600/smu2606b.py | 1 + .../source_measure_units/smu2600/smu2611a.py | 1 + .../source_measure_units/smu2600/smu2611b.py | 1 + .../source_measure_units/smu2600/smu2612a.py | 1 + .../source_measure_units/smu2600/smu2612b.py | 1 + .../source_measure_units/smu2600/smu2614a.py | 1 + .../source_measure_units/smu2600/smu2614b.py | 1 + .../source_measure_units/smu2600/smu2634a.py | 1 + .../source_measure_units/smu2600/smu2634b.py | 1 + .../source_measure_units/smu2600/smu2635a.py | 1 + .../source_measure_units/smu2600/smu2635b.py | 1 + .../source_measure_units/smu2600/smu2636a.py | 1 + .../source_measure_units/smu2600/smu2636b.py | 1 + .../source_measure_units/smu2600/smu2650a.py | 1 + .../source_measure_units/smu2600/smu2651a.py | 1 + .../source_measure_units/smu2600/smu2657a.py | 1 + .../source_measure_units/smu6000/__init__.py | 1 + .../source_measure_units/smu6000/smu6000.py | 1 + .../source_measure_units/smu6000/smu6430.py | 1 + .../source_measure_units/smu6000/smu6514.py | 1 + .../source_measure_units/smu6000/smu6517b.py | 1 + .../source_measure_unit.py | 1 + .../drivers/pi/systems_switches/__init__.py | 1 + .../drivers/pi/systems_switches/ss3706a.py | 1 + .../pi/systems_switches/systems_switch.py | 1 + src/tm_devices/drivers/pi/tsp_device.py | 1 + src/tm_devices/helpers/__init__.py | 1 + src/tm_devices/helpers/alias_dict.py | 1 + .../helpers/constants_and_dataclasses.py | 1 + src/tm_devices/helpers/dataclass_mixins.py | 1 + src/tm_devices/helpers/enums.py | 1 + src/tm_devices/helpers/functions.py | 1 + .../helpers/read_only_cached_property.py | 1 + src/tm_devices/helpers/singleton_metaclass.py | 1 + .../helpers/standalone_functions.py | 1 + src/tm_devices/helpers/stubgen.py | 1 + tests/conftest.py | 1 + tests/mock_server.py | 1 + tests/samples/tsp_script.py | 1 + tests/test_afgs.py | 1 + tests/test_alias_dict.py | 1 + tests/test_all_device_drivers.py | 1 + .../test_alternative_connection_addresses.py | 1 + tests/test_auto_generated_commands.py | 1 + tests/test_awgs.py | 1 + tests/test_config_parser.py | 1 + tests/test_device_manager.py | 1 + tests/test_devices_legacy_tsp_ieee_cmds.py | 1 + tests/test_docs.py | 1 + tests/test_helpers.py | 1 + tests/test_ieee_scpi_cmds.py | 1 + tests/test_margin_testers.py | 1 + tests/test_pi_device.py | 1 + tests/test_psu.py | 1 + tests/test_rest_api_device.py | 1 + tests/test_scopes.py | 1 + tests/test_singleton.py | 1 + tests/test_smu.py | 1 + tests/test_ss.py | 1 + tests/test_tm_devices.py | 1 + tests/validate_device_manager_delete.py | 1 + tests/verify_physical_device_support.py | 1 + 845 files changed, 2128 insertions(+), 1205 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 3a1a96e92..e92eeb715 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -4,6 +4,7 @@ This file only contains a selection of the most common options. For a full list see the documentation: https://www.sphinx-doc.org/en/master/usage/configuration.html """ + import os import shutil diff --git a/examples/miscellaneous/adding_devices.py b/examples/miscellaneous/adding_devices.py index 29f0108f3..0d4b30010 100644 --- a/examples/miscellaneous/adding_devices.py +++ b/examples/miscellaneous/adding_devices.py @@ -1,4 +1,5 @@ """An example of adding devices via Python code.""" + from tm_devices import DeviceManager from tm_devices.helpers import ( DMConfigOptions, diff --git a/examples/miscellaneous/adding_devices_with_env_var.py b/examples/miscellaneous/adding_devices_with_env_var.py index f8472240c..791ce2157 100644 --- a/examples/miscellaneous/adding_devices_with_env_var.py +++ b/examples/miscellaneous/adding_devices_with_env_var.py @@ -3,6 +3,7 @@ These environment variables are settable outside Python code, usually they are set in the shell used to execute the Python script. """ + import os from tm_devices import DeviceManager diff --git a/examples/miscellaneous/alias_usage.py b/examples/miscellaneous/alias_usage.py index 28fc52cd4..379adcf14 100644 --- a/examples/miscellaneous/alias_usage.py +++ b/examples/miscellaneous/alias_usage.py @@ -1,4 +1,5 @@ """An example of alias usage.""" + from tm_devices import DeviceManager with DeviceManager(verbose=True) as dm: diff --git a/examples/miscellaneous/custom_device_driver_support.py b/examples/miscellaneous/custom_device_driver_support.py index 77c761fe9..728cea30b 100644 --- a/examples/miscellaneous/custom_device_driver_support.py +++ b/examples/miscellaneous/custom_device_driver_support.py @@ -1,4 +1,5 @@ """An example of external device support via a custom driver.""" + from tm_devices import DeviceManager from tm_devices.drivers import MSO5 from tm_devices.drivers.pi.scopes.scope import Scope diff --git a/examples/miscellaneous/disable_command_verification.py b/examples/miscellaneous/disable_command_verification.py index 9151eae5c..5856699d1 100644 --- a/examples/miscellaneous/disable_command_verification.py +++ b/examples/miscellaneous/disable_command_verification.py @@ -1,4 +1,5 @@ """An example showing how to disable the verification portion of the ``.set_and_check()`` method.""" + from tm_devices import DeviceManager from tm_devices.drivers import MSO5, SMU2601B diff --git a/examples/miscellaneous/pyvisa_resource_access.py b/examples/miscellaneous/pyvisa_resource_access.py index 6f688cf51..c1aca7f64 100644 --- a/examples/miscellaneous/pyvisa_resource_access.py +++ b/examples/miscellaneous/pyvisa_resource_access.py @@ -1,4 +1,5 @@ """Directly access the PyVISA resource object.""" + from tm_devices import DeviceManager with DeviceManager() as device_manager: diff --git a/examples/miscellaneous/register_dm_atexit.py b/examples/miscellaneous/register_dm_atexit.py index ec5a3cbb6..098dfbbf1 100644 --- a/examples/miscellaneous/register_dm_atexit.py +++ b/examples/miscellaneous/register_dm_atexit.py @@ -1,4 +1,5 @@ """An example showing how to register the DeviceManager to close on program exit.""" + import atexit from tm_devices import DeviceManager diff --git a/examples/miscellaneous/visa_connection_selectivity.py b/examples/miscellaneous/visa_connection_selectivity.py index 389c6d8ee..5d4ce8a35 100644 --- a/examples/miscellaneous/visa_connection_selectivity.py +++ b/examples/miscellaneous/visa_connection_selectivity.py @@ -1,4 +1,5 @@ """An example script to choose visa from different visa resources.""" + from tm_devices import DeviceManager from tm_devices.helpers import PYVISA_PY_BACKEND, SYSTEM_DEFAULT_VISA_BACKEND diff --git a/examples/scopes/tekscope/basic_curve_query.py b/examples/scopes/tekscope/basic_curve_query.py index 465ccf413..9cd63853c 100644 --- a/examples/scopes/tekscope/basic_curve_query.py +++ b/examples/scopes/tekscope/basic_curve_query.py @@ -1,4 +1,5 @@ """An example showing a basic curve query.""" + from tm_devices import DeviceManager EXAMPLE_CSV_FILE = "example_curve_query.csv" diff --git a/examples/scopes/tekscope/basic_save_recall.py b/examples/scopes/tekscope/basic_save_recall.py index d2bef45be..61a578053 100644 --- a/examples/scopes/tekscope/basic_save_recall.py +++ b/examples/scopes/tekscope/basic_save_recall.py @@ -1,4 +1,5 @@ """An example of saving and recalling a waveform and session file.""" + from tm_devices import DeviceManager from tm_devices.drivers import MSO6B diff --git a/examples/scopes/tekscope/generate_internal_afg_signal.py b/examples/scopes/tekscope/generate_internal_afg_signal.py index f9658fd1e..80d9c7a77 100644 --- a/examples/scopes/tekscope/generate_internal_afg_signal.py +++ b/examples/scopes/tekscope/generate_internal_afg_signal.py @@ -1,4 +1,5 @@ """An example showing how to generate a signal using the scope's internal AFG.""" + from tm_devices import DeviceManager from tm_devices.drivers import MSO5 diff --git a/examples/scopes/tekscope/get_acquisition_data.py b/examples/scopes/tekscope/get_acquisition_data.py index 9d6d8cb5e..55e99c373 100644 --- a/examples/scopes/tekscope/get_acquisition_data.py +++ b/examples/scopes/tekscope/get_acquisition_data.py @@ -1,4 +1,5 @@ """An example script for connecting and configuring scope for acquisition.""" + from tm_devices import DeviceManager from tm_devices.drivers import MSO6B from tm_devices.helpers import PYVISA_PY_BACKEND diff --git a/examples/scopes/tekscope_70k/dpojet/adding_dpojet_measurements.py b/examples/scopes/tekscope_70k/dpojet/adding_dpojet_measurements.py index 265ea7b49..a66c36376 100644 --- a/examples/scopes/tekscope_70k/dpojet/adding_dpojet_measurements.py +++ b/examples/scopes/tekscope_70k/dpojet/adding_dpojet_measurements.py @@ -1,4 +1,5 @@ """An example of adding dpojet measurements and plots.""" + from tm_devices import DeviceManager from tm_devices.drivers import MSO70KDX from tm_devices.helpers import PYVISA_PY_BACKEND diff --git a/examples/source_measure_units/2400/smu_2460_pulse_train.py b/examples/source_measure_units/2400/smu_2460_pulse_train.py index d0e75d631..e3b06c81a 100644 --- a/examples/source_measure_units/2400/smu_2460_pulse_train.py +++ b/examples/source_measure_units/2400/smu_2460_pulse_train.py @@ -7,6 +7,7 @@ Converted to Python tm_devices script. DCA 4.7.23 """ + import time from tm_devices import DeviceManager diff --git a/examples/source_measure_units/2400/smu_2460_solar_panel_sweep.py b/examples/source_measure_units/2400/smu_2460_solar_panel_sweep.py index a66f92293..f4b495431 100644 --- a/examples/source_measure_units/2400/smu_2460_solar_panel_sweep.py +++ b/examples/source_measure_units/2400/smu_2460_solar_panel_sweep.py @@ -8,6 +8,7 @@ Converted to Python tm_devices script. DCA 4.7.23 """ + import time from tm_devices import DeviceManager diff --git a/examples/source_measure_units/2400/smu_2461_1kw_pulsing.py b/examples/source_measure_units/2400/smu_2461_1kw_pulsing.py index b0c672b02..84e8488e4 100644 --- a/examples/source_measure_units/2400/smu_2461_1kw_pulsing.py +++ b/examples/source_measure_units/2400/smu_2461_1kw_pulsing.py @@ -2,6 +2,7 @@ This script creates pulses on the model 2461. """ + from time import sleep from tm_devices import DeviceManager diff --git a/examples/source_measure_units/2400/smu_2461_pulse_sweep_i_digitize_v.py b/examples/source_measure_units/2400/smu_2461_pulse_sweep_i_digitize_v.py index 3cdc3bada..f9526e520 100644 --- a/examples/source_measure_units/2400/smu_2461_pulse_sweep_i_digitize_v.py +++ b/examples/source_measure_units/2400/smu_2461_pulse_sweep_i_digitize_v.py @@ -9,6 +9,7 @@ (smu.source.pulsesweeplinear) is sent to the instrument. The pulse command accepts a lot of arguments so the the arguments are stored in variables to make them easier to read. """ + from typing import cast, List from tm_devices import DeviceManager diff --git a/examples/source_measure_units/2400/smu_2470_insulation_resistance.py b/examples/source_measure_units/2400/smu_2470_insulation_resistance.py index 5515f64e6..4c23aae4e 100644 --- a/examples/source_measure_units/2400/smu_2470_insulation_resistance.py +++ b/examples/source_measure_units/2400/smu_2470_insulation_resistance.py @@ -3,6 +3,7 @@ It does this by sourcing 300 V and measuring the resistance. The Simple Loop trigger model template is used to make 10 measurements at 100 ms intervals. """ + from typing import List from tm_devices import DeviceManager diff --git a/examples/source_measure_units/2400/smu_2470_mosfet_leakage.py b/examples/source_measure_units/2400/smu_2470_mosfet_leakage.py index a1fa500b5..5dc38589e 100644 --- a/examples/source_measure_units/2400/smu_2470_mosfet_leakage.py +++ b/examples/source_measure_units/2400/smu_2470_mosfet_leakage.py @@ -4,6 +4,7 @@ trigger model template applies the voltage for 60 seconds and makes measurements at 200 ms intervals. """ + from typing import List from tm_devices import DeviceManager diff --git a/examples/source_measure_units/2600/reading_dynamic_buffers.py b/examples/source_measure_units/2600/reading_dynamic_buffers.py index 6d0f35e57..288413a62 100644 --- a/examples/source_measure_units/2600/reading_dynamic_buffers.py +++ b/examples/source_measure_units/2600/reading_dynamic_buffers.py @@ -1,4 +1,5 @@ """An example of creating and reading from a dynamic buffer.""" + from tm_devices import DeviceManager from tm_devices.drivers import SMU2601B diff --git a/examples/source_measure_units/2600/smu_2600_ac_waveform_sweep.py b/examples/source_measure_units/2600/smu_2600_ac_waveform_sweep.py index 037514ed5..aa6eec1db 100644 --- a/examples/source_measure_units/2600/smu_2600_ac_waveform_sweep.py +++ b/examples/source_measure_units/2600/smu_2600_ac_waveform_sweep.py @@ -12,6 +12,7 @@ Converted to Python tm_devices script. DCA 4.12.23 """ + import math from tm_devices import DeviceManager diff --git a/examples/source_measure_units/2600/smu_2600_bjt_slow.py b/examples/source_measure_units/2600/smu_2600_bjt_slow.py index 31f1533d5..d10356497 100644 --- a/examples/source_measure_units/2600/smu_2600_bjt_slow.py +++ b/examples/source_measure_units/2600/smu_2600_bjt_slow.py @@ -10,6 +10,7 @@ Converted to Python tm_devices script. DCA 4.11.23 """ + import time from typing import Dict, Tuple diff --git a/examples/source_measure_units/2600/smu_2600_diode_test_fast.py b/examples/source_measure_units/2600/smu_2600_diode_test_fast.py index e199031b7..0c9aa8d7a 100644 --- a/examples/source_measure_units/2600/smu_2600_diode_test_fast.py +++ b/examples/source_measure_units/2600/smu_2600_diode_test_fast.py @@ -11,6 +11,7 @@ Converted to Python tm_devices script. DCA 4.12.23 """ + import time from typing import Dict, Tuple diff --git a/examples/source_measure_units/2600/smu_2651_fast_adc_usage.py b/examples/source_measure_units/2600/smu_2651_fast_adc_usage.py index ad212ede8..7aeeeda9a 100644 --- a/examples/source_measure_units/2600/smu_2651_fast_adc_usage.py +++ b/examples/source_measure_units/2600/smu_2651_fast_adc_usage.py @@ -11,6 +11,7 @@ Converted to Python tm_devices script. DCA 4.12.23 """ + from datetime import datetime from dateutil.tz import tzlocal diff --git a/examples/source_measure_units/2600/smu_2657_dioderl_swp.py b/examples/source_measure_units/2600/smu_2657_dioderl_swp.py index 2140d1f85..b9a4b2c17 100644 --- a/examples/source_measure_units/2600/smu_2657_dioderl_swp.py +++ b/examples/source_measure_units/2600/smu_2657_dioderl_swp.py @@ -1,4 +1,5 @@ """Linear voltage sweep to measure the reverse leakage of a diode.""" + import math from time import sleep diff --git a/examples/source_measure_units/2600/smu_2657a_capacitor_leakage.py b/examples/source_measure_units/2600/smu_2657a_capacitor_leakage.py index 218aa08c1..b5290b741 100644 --- a/examples/source_measure_units/2600/smu_2657a_capacitor_leakage.py +++ b/examples/source_measure_units/2600/smu_2657a_capacitor_leakage.py @@ -16,6 +16,7 @@ Converted to Python tm_devices script. DCA 5.10.23 """ + from tm_devices import DeviceManager from tm_devices.drivers import SMU2657A diff --git a/examples/source_measure_units/2600/smu_2657a_mosfet_bvdss.py b/examples/source_measure_units/2600/smu_2657a_mosfet_bvdss.py index a0283aa5c..03efb64cd 100644 --- a/examples/source_measure_units/2600/smu_2657a_mosfet_bvdss.py +++ b/examples/source_measure_units/2600/smu_2657a_mosfet_bvdss.py @@ -18,6 +18,7 @@ Converted to Python tm_devices script. DCA 6.6.23 """ + from tm_devices import DeviceManager from tm_devices.drivers import SMU2636B, SMU2657A diff --git a/examples/source_measure_units/2600/smu_2657a_mosfet_idss.py b/examples/source_measure_units/2600/smu_2657a_mosfet_idss.py index 40064a7eb..e9f4ae774 100644 --- a/examples/source_measure_units/2600/smu_2657a_mosfet_idss.py +++ b/examples/source_measure_units/2600/smu_2657a_mosfet_idss.py @@ -18,6 +18,7 @@ Converted to Python tm_devices script. DCA 6.6.23 """ + from tm_devices import DeviceManager from tm_devices.drivers import SMU2636B, SMU2657A diff --git a/examples/system_switch/3700/dmm_3706a_basic_scan.py b/examples/system_switch/3700/dmm_3706a_basic_scan.py index b8b563497..737d2414f 100644 --- a/examples/system_switch/3700/dmm_3706a_basic_scan.py +++ b/examples/system_switch/3700/dmm_3706a_basic_scan.py @@ -54,6 +54,7 @@ Rev: 1-EEB 1.1-Update Function Names-EEB """ + from tm_devices import DeviceManager from tm_devices.drivers import SS3706A diff --git a/examples/system_switch/3700/dmm_3706a_simple_scan.py b/examples/system_switch/3700/dmm_3706a_simple_scan.py index 66f9ee244..fae37b4c9 100644 --- a/examples/system_switch/3700/dmm_3706a_simple_scan.py +++ b/examples/system_switch/3700/dmm_3706a_simple_scan.py @@ -23,6 +23,7 @@ Rev: 1-EEB 1.1-Updated Function Names-EEB """ + from tm_devices import DeviceManager from tm_devices.drivers import SS3706A diff --git a/examples/system_switch/3700/dmm_3706a_temp_scan.py b/examples/system_switch/3700/dmm_3706a_temp_scan.py index f5bb0ff36..7f71a9593 100644 --- a/examples/system_switch/3700/dmm_3706a_temp_scan.py +++ b/examples/system_switch/3700/dmm_3706a_temp_scan.py @@ -24,6 +24,7 @@ Rev: 1-EEB 1.1-Update Function Names-EEB """ + from tm_devices import DeviceManager from tm_devices.drivers import SS3706A diff --git a/scripts/check_unreleased_changelog_items.py b/scripts/check_unreleased_changelog_items.py index e1488af8c..ab019c77e 100644 --- a/scripts/check_unreleased_changelog_items.py +++ b/scripts/check_unreleased_changelog_items.py @@ -5,6 +5,7 @@ It will also copy the necessary files into the template directory to properly render the CHANGELOG and Release Notes. """ + import pathlib import re import shutil diff --git a/scripts/contributor_setup.py b/scripts/contributor_setup.py index 20c1c6f9d..ddffb0b6c 100644 --- a/scripts/contributor_setup.py +++ b/scripts/contributor_setup.py @@ -2,6 +2,7 @@ This script will run through the commands listed in the CONTRIBUTING.md file. """ + from __future__ import annotations import argparse diff --git a/scripts/create_post_version_for_testpypi.py b/scripts/create_post_version_for_testpypi.py index 83cc4ef56..3c3f530d5 100644 --- a/scripts/create_post_version_for_testpypi.py +++ b/scripts/create_post_version_for_testpypi.py @@ -1,4 +1,5 @@ """Create a post-release version for test.pypi.org.""" + import argparse from poetry.core.constraints.version import Version diff --git a/scripts/project_version.py b/scripts/project_version.py index 865b298c8..4bf7a17dd 100644 --- a/scripts/project_version.py +++ b/scripts/project_version.py @@ -1,4 +1,5 @@ """This script modifies or gets the current project version in the pyproject.toml file.""" + import argparse import pathlib diff --git a/scripts/pypi_latest_version.py b/scripts/pypi_latest_version.py index 957afbe8d..907743f55 100644 --- a/scripts/pypi_latest_version.py +++ b/scripts/pypi_latest_version.py @@ -1,4 +1,5 @@ """Get the latest version from the index server.""" + import argparse import json diff --git a/scripts/update_development_dependencies.py b/scripts/update_development_dependencies.py index 8c92a7634..738f25479 100644 --- a/scripts/update_development_dependencies.py +++ b/scripts/update_development_dependencies.py @@ -3,6 +3,7 @@ This script will update the development dependencies that are pinned in the pyproject.toml and .pre- commit-config.yaml files. """ + import argparse import shlex import subprocess diff --git a/src/tm_devices/__init__.py b/src/tm_devices/__init__.py index 4dfca694b..e3bd7556e 100644 --- a/src/tm_devices/__init__.py +++ b/src/tm_devices/__init__.py @@ -10,6 +10,7 @@ True 2023-09-21 01:50:16.031 - DeviceManager Closed """ + from importlib.metadata import version from tm_devices.device_manager import DeviceManager, print_available_visa_devices diff --git a/src/tm_devices/commands/_163n04_mdo/search.py b/src/tm_devices/commands/_163n04_mdo/search.py index 1401db5fb..0f8823e62 100644 --- a/src/tm_devices/commands/_163n04_mdo/search.py +++ b/src/tm_devices/commands/_163n04_mdo/search.py @@ -446,6 +446,7 @@ - SEARCH:SPECTral:LIST? - SEARCH? """ # noqa: E501 + from typing import Dict, Optional, TYPE_CHECKING from .._helpers import ( @@ -736,19 +737,19 @@ class SearchSearchItemTriggerAUpperthreshold(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerAUpperthresholdChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerAUpperthresholdChannel( - device, f"{self._cmd_syntax}:CH{x}" + self._ch: Dict[int, SearchSearchItemTriggerAUpperthresholdChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerAUpperthresholdChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) ) ) self._math = SearchSearchItemTriggerAUpperthresholdMath(device, f"{self._cmd_syntax}:MATH") - self._ref: Dict[ - int, SearchSearchItemTriggerAUpperthresholdRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerAUpperthresholdRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerAUpperthresholdRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerAUpperthresholdRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) self._rf_amplitude = SearchSearchItemTriggerAUpperthresholdRfAmplitude( @@ -1600,11 +1601,11 @@ class SearchSearchItemTriggerASetholdThreshold(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ref: Dict[ - int, SearchSearchItemTriggerASetholdThresholdRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerASetholdThresholdRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerASetholdThresholdRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerASetholdThresholdRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) self._math = SearchSearchItemTriggerASetholdThresholdMath( @@ -3512,19 +3513,19 @@ class SearchSearchItemTriggerALowerthreshold(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerALowerthresholdChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALowerthresholdChannel( - device, f"{self._cmd_syntax}:CH{x}" + self._ch: Dict[int, SearchSearchItemTriggerALowerthresholdChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALowerthresholdChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) ) ) self._math = SearchSearchItemTriggerALowerthresholdMath(device, f"{self._cmd_syntax}:MATH") - self._ref: Dict[ - int, SearchSearchItemTriggerALowerthresholdRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALowerthresholdRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerALowerthresholdRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALowerthresholdRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) self._rf_amplitude = SearchSearchItemTriggerALowerthresholdRfAmplitude( @@ -3926,19 +3927,19 @@ class SearchSearchItemTriggerALogicThreshold(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerALogicThresholdChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicThresholdChannel( - device, f"{self._cmd_syntax}:CH{x}" + self._ch: Dict[int, SearchSearchItemTriggerALogicThresholdChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicThresholdChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) ) ) self._math = SearchSearchItemTriggerALogicThresholdMath(device, f"{self._cmd_syntax}:MATH") - self._ref: Dict[ - int, SearchSearchItemTriggerALogicThresholdRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicThresholdRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerALogicThresholdRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicThresholdRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) self._rf_amplitude = SearchSearchItemTriggerALogicThresholdRfAmplitude( @@ -4353,11 +4354,11 @@ class SearchSearchItemTriggerALogicPatternInput(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerALogicPatternInputChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicPatternInputChannel( - device, f"{self._cmd_syntax}:CH{x}" + self._ch: Dict[int, SearchSearchItemTriggerALogicPatternInputChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicPatternInputChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) ) ) @@ -4889,25 +4890,27 @@ class SearchSearchItemTriggerALogicInput(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerALogicInputChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") + self._ch: Dict[int, SearchSearchItemTriggerALogicInputChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicInputChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) + ) ) self._clock = SearchSearchItemTriggerALogicInputClock(device, f"{self._cmd_syntax}:CLOCk") - self._d: Dict[ - int, SearchSearchItemTriggerALogicInputDigitalBit - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicInputDigitalBit( - device, f"{self._cmd_syntax}:D{x}" + self._d: Dict[int, SearchSearchItemTriggerALogicInputDigitalBit] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicInputDigitalBit( + device, f"{self._cmd_syntax}:D{x}" + ) ) ) self._math = SearchSearchItemTriggerALogicInputMath(device, f"{self._cmd_syntax}:MATH") - self._ref: Dict[ - int, SearchSearchItemTriggerALogicInputRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicInputRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerALogicInputRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicInputRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) self._rf_amplitude = SearchSearchItemTriggerALogicInputRfAmplitude( diff --git a/src/tm_devices/commands/_16x4xq_mdo/search.py b/src/tm_devices/commands/_16x4xq_mdo/search.py index f690ed15f..3b0dae3e3 100644 --- a/src/tm_devices/commands/_16x4xq_mdo/search.py +++ b/src/tm_devices/commands/_16x4xq_mdo/search.py @@ -408,6 +408,7 @@ - SEARCH:SPECTral:LIST? - SEARCH? """ # noqa: E501 + from typing import Dict, Optional, TYPE_CHECKING from .._helpers import ( @@ -698,19 +699,19 @@ class SearchSearchItemTriggerAUpperthreshold(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerAUpperthresholdChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerAUpperthresholdChannel( - device, f"{self._cmd_syntax}:CH{x}" + self._ch: Dict[int, SearchSearchItemTriggerAUpperthresholdChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerAUpperthresholdChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) ) ) self._math = SearchSearchItemTriggerAUpperthresholdMath(device, f"{self._cmd_syntax}:MATH") - self._ref: Dict[ - int, SearchSearchItemTriggerAUpperthresholdRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerAUpperthresholdRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerAUpperthresholdRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerAUpperthresholdRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) self._rf_amplitude = SearchSearchItemTriggerAUpperthresholdRfAmplitude( @@ -1562,11 +1563,11 @@ class SearchSearchItemTriggerASetholdThreshold(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ref: Dict[ - int, SearchSearchItemTriggerASetholdThresholdRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerASetholdThresholdRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerASetholdThresholdRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerASetholdThresholdRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) self._math = SearchSearchItemTriggerASetholdThresholdMath( @@ -3474,19 +3475,19 @@ class SearchSearchItemTriggerALowerthreshold(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerALowerthresholdChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALowerthresholdChannel( - device, f"{self._cmd_syntax}:CH{x}" + self._ch: Dict[int, SearchSearchItemTriggerALowerthresholdChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALowerthresholdChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) ) ) self._math = SearchSearchItemTriggerALowerthresholdMath(device, f"{self._cmd_syntax}:MATH") - self._ref: Dict[ - int, SearchSearchItemTriggerALowerthresholdRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALowerthresholdRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerALowerthresholdRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALowerthresholdRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) self._rf_amplitude = SearchSearchItemTriggerALowerthresholdRfAmplitude( @@ -3888,19 +3889,19 @@ class SearchSearchItemTriggerALogicThreshold(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerALogicThresholdChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicThresholdChannel( - device, f"{self._cmd_syntax}:CH{x}" + self._ch: Dict[int, SearchSearchItemTriggerALogicThresholdChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicThresholdChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) ) ) self._math = SearchSearchItemTriggerALogicThresholdMath(device, f"{self._cmd_syntax}:MATH") - self._ref: Dict[ - int, SearchSearchItemTriggerALogicThresholdRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicThresholdRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerALogicThresholdRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicThresholdRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) self._rf_amplitude = SearchSearchItemTriggerALogicThresholdRfAmplitude( @@ -4315,11 +4316,11 @@ class SearchSearchItemTriggerALogicPatternInput(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerALogicPatternInputChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicPatternInputChannel( - device, f"{self._cmd_syntax}:CH{x}" + self._ch: Dict[int, SearchSearchItemTriggerALogicPatternInputChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicPatternInputChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) ) ) @@ -4851,25 +4852,27 @@ class SearchSearchItemTriggerALogicInput(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerALogicInputChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") + self._ch: Dict[int, SearchSearchItemTriggerALogicInputChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicInputChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) + ) ) self._clock = SearchSearchItemTriggerALogicInputClock(device, f"{self._cmd_syntax}:CLOCk") - self._d: Dict[ - int, SearchSearchItemTriggerALogicInputDigitalBit - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicInputDigitalBit( - device, f"{self._cmd_syntax}:D{x}" + self._d: Dict[int, SearchSearchItemTriggerALogicInputDigitalBit] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicInputDigitalBit( + device, f"{self._cmd_syntax}:D{x}" + ) ) ) self._math = SearchSearchItemTriggerALogicInputMath(device, f"{self._cmd_syntax}:MATH") - self._ref: Dict[ - int, SearchSearchItemTriggerALogicInputRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicInputRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerALogicInputRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicInputRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) self._rf_amplitude = SearchSearchItemTriggerALogicInputRfAmplitude( diff --git a/src/tm_devices/commands/_1jzp7o_mdodpo/trigger.py b/src/tm_devices/commands/_1jzp7o_mdodpo/trigger.py index 0baaa1f1e..25dd26af6 100644 --- a/src/tm_devices/commands/_1jzp7o_mdodpo/trigger.py +++ b/src/tm_devices/commands/_1jzp7o_mdodpo/trigger.py @@ -450,6 +450,7 @@ - TRIGger:STATE? - TRIGger? """ # noqa: E501 + from typing import Dict, Optional, TYPE_CHECKING from .._helpers import ( diff --git a/src/tm_devices/commands/_1kdqwg_mdo/search.py b/src/tm_devices/commands/_1kdqwg_mdo/search.py index cb644e98c..d30c72b7b 100644 --- a/src/tm_devices/commands/_1kdqwg_mdo/search.py +++ b/src/tm_devices/commands/_1kdqwg_mdo/search.py @@ -452,6 +452,7 @@ - SEARCH:SPECTral:LIST? - SEARCH? """ # noqa: E501 + from typing import Dict, Optional, TYPE_CHECKING from .._helpers import ( @@ -742,19 +743,19 @@ class SearchSearchItemTriggerAUpperthreshold(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerAUpperthresholdChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerAUpperthresholdChannel( - device, f"{self._cmd_syntax}:CH{x}" + self._ch: Dict[int, SearchSearchItemTriggerAUpperthresholdChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerAUpperthresholdChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) ) ) self._math = SearchSearchItemTriggerAUpperthresholdMath(device, f"{self._cmd_syntax}:MATH") - self._ref: Dict[ - int, SearchSearchItemTriggerAUpperthresholdRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerAUpperthresholdRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerAUpperthresholdRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerAUpperthresholdRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) self._rf_amplitude = SearchSearchItemTriggerAUpperthresholdRfAmplitude( @@ -1606,11 +1607,11 @@ class SearchSearchItemTriggerASetholdThreshold(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ref: Dict[ - int, SearchSearchItemTriggerASetholdThresholdRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerASetholdThresholdRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerASetholdThresholdRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerASetholdThresholdRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) self._math = SearchSearchItemTriggerASetholdThresholdMath( @@ -3518,19 +3519,19 @@ class SearchSearchItemTriggerALowerthreshold(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerALowerthresholdChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALowerthresholdChannel( - device, f"{self._cmd_syntax}:CH{x}" + self._ch: Dict[int, SearchSearchItemTriggerALowerthresholdChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALowerthresholdChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) ) ) self._math = SearchSearchItemTriggerALowerthresholdMath(device, f"{self._cmd_syntax}:MATH") - self._ref: Dict[ - int, SearchSearchItemTriggerALowerthresholdRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALowerthresholdRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerALowerthresholdRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALowerthresholdRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) self._rf_amplitude = SearchSearchItemTriggerALowerthresholdRfAmplitude( @@ -3932,19 +3933,19 @@ class SearchSearchItemTriggerALogicThreshold(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerALogicThresholdChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicThresholdChannel( - device, f"{self._cmd_syntax}:CH{x}" + self._ch: Dict[int, SearchSearchItemTriggerALogicThresholdChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicThresholdChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) ) ) self._math = SearchSearchItemTriggerALogicThresholdMath(device, f"{self._cmd_syntax}:MATH") - self._ref: Dict[ - int, SearchSearchItemTriggerALogicThresholdRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicThresholdRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerALogicThresholdRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicThresholdRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) self._rf_amplitude = SearchSearchItemTriggerALogicThresholdRfAmplitude( @@ -4359,11 +4360,11 @@ class SearchSearchItemTriggerALogicPatternInput(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerALogicPatternInputChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicPatternInputChannel( - device, f"{self._cmd_syntax}:CH{x}" + self._ch: Dict[int, SearchSearchItemTriggerALogicPatternInputChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicPatternInputChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) ) ) @@ -4895,25 +4896,27 @@ class SearchSearchItemTriggerALogicInput(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerALogicInputChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") + self._ch: Dict[int, SearchSearchItemTriggerALogicInputChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicInputChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) + ) ) self._clock = SearchSearchItemTriggerALogicInputClock(device, f"{self._cmd_syntax}:CLOCk") - self._d: Dict[ - int, SearchSearchItemTriggerALogicInputDigitalBit - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicInputDigitalBit( - device, f"{self._cmd_syntax}:D{x}" + self._d: Dict[int, SearchSearchItemTriggerALogicInputDigitalBit] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicInputDigitalBit( + device, f"{self._cmd_syntax}:D{x}" + ) ) ) self._math = SearchSearchItemTriggerALogicInputMath(device, f"{self._cmd_syntax}:MATH") - self._ref: Dict[ - int, SearchSearchItemTriggerALogicInputRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicInputRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerALogicInputRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicInputRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) self._rf_amplitude = SearchSearchItemTriggerALogicInputRfAmplitude( diff --git a/src/tm_devices/commands/_1kdqwg_mdo/trigger.py b/src/tm_devices/commands/_1kdqwg_mdo/trigger.py index 2bf6231a0..069542a7f 100644 --- a/src/tm_devices/commands/_1kdqwg_mdo/trigger.py +++ b/src/tm_devices/commands/_1kdqwg_mdo/trigger.py @@ -496,6 +496,7 @@ - TRIGger:STATE? - TRIGger? """ # noqa: E501 + from typing import Dict, Optional, TYPE_CHECKING from .._helpers import ( diff --git a/src/tm_devices/commands/_1kjd62_mdo/measurement.py b/src/tm_devices/commands/_1kjd62_mdo/measurement.py index 6b8ab14c6..76d5e1e60 100644 --- a/src/tm_devices/commands/_1kjd62_mdo/measurement.py +++ b/src/tm_devices/commands/_1kjd62_mdo/measurement.py @@ -107,6 +107,7 @@ - MEASUrement:STATIstics? - MEASUrement? """ # noqa: E501 + from typing import Dict, Optional, TYPE_CHECKING from .._helpers import ( diff --git a/src/tm_devices/commands/_1kjd62_mdo/rf.py b/src/tm_devices/commands/_1kjd62_mdo/rf.py index 6f398d6ab..ac6225181 100644 --- a/src/tm_devices/commands/_1kjd62_mdo/rf.py +++ b/src/tm_devices/commands/_1kjd62_mdo/rf.py @@ -139,6 +139,7 @@ - RF:WINdow {RECTangular|HAMming|HANning|BLAckmanharris|KAIser|FLATtop} - RF:WINdow? """ + from typing import Optional, TYPE_CHECKING from .._helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments diff --git a/src/tm_devices/commands/_1kozfv_dpo/search.py b/src/tm_devices/commands/_1kozfv_dpo/search.py index 233e328aa..f048b6f57 100644 --- a/src/tm_devices/commands/_1kozfv_dpo/search.py +++ b/src/tm_devices/commands/_1kozfv_dpo/search.py @@ -387,6 +387,7 @@ - SEARCH:SEARCH:TRIGger:A:UPPerthreshold:REF? - SEARCH? """ # noqa: E501 + from typing import Dict, Optional, TYPE_CHECKING from .._helpers import ( @@ -512,19 +513,19 @@ class SearchSearchItemTriggerAUpperthreshold(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerAUpperthresholdChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerAUpperthresholdChannel( - device, f"{self._cmd_syntax}:CH{x}" + self._ch: Dict[int, SearchSearchItemTriggerAUpperthresholdChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerAUpperthresholdChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) ) ) self._math = SearchSearchItemTriggerAUpperthresholdMath(device, f"{self._cmd_syntax}:MATH") - self._ref: Dict[ - int, SearchSearchItemTriggerAUpperthresholdRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerAUpperthresholdRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerAUpperthresholdRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerAUpperthresholdRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) @@ -1273,11 +1274,11 @@ class SearchSearchItemTriggerASetholdThreshold(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ref: Dict[ - int, SearchSearchItemTriggerASetholdThresholdRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerASetholdThresholdRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerASetholdThresholdRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerASetholdThresholdRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) self._math = SearchSearchItemTriggerASetholdThresholdMath( @@ -3153,19 +3154,19 @@ class SearchSearchItemTriggerALowerthreshold(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerALowerthresholdChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALowerthresholdChannel( - device, f"{self._cmd_syntax}:CH{x}" + self._ch: Dict[int, SearchSearchItemTriggerALowerthresholdChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALowerthresholdChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) ) ) self._math = SearchSearchItemTriggerALowerthresholdMath(device, f"{self._cmd_syntax}:MATH") - self._ref: Dict[ - int, SearchSearchItemTriggerALowerthresholdRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALowerthresholdRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerALowerthresholdRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALowerthresholdRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) self._rf_frequency = SearchSearchItemTriggerALowerthresholdRfFrequency( @@ -3441,19 +3442,19 @@ class SearchSearchItemTriggerALogicThreshold(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerALogicThresholdChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicThresholdChannel( - device, f"{self._cmd_syntax}:CH{x}" + self._ch: Dict[int, SearchSearchItemTriggerALogicThresholdChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicThresholdChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) ) ) self._math = SearchSearchItemTriggerALogicThresholdMath(device, f"{self._cmd_syntax}:MATH") - self._ref: Dict[ - int, SearchSearchItemTriggerALogicThresholdRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicThresholdRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerALogicThresholdRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicThresholdRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) @@ -3771,11 +3772,11 @@ class SearchSearchItemTriggerALogicPatternInput(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerALogicPatternInputChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicPatternInputChannel( - device, f"{self._cmd_syntax}:CH{x}" + self._ch: Dict[int, SearchSearchItemTriggerALogicPatternInputChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicPatternInputChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) ) ) @@ -4198,25 +4199,27 @@ class SearchSearchItemTriggerALogicInput(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerALogicInputChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") + self._ch: Dict[int, SearchSearchItemTriggerALogicInputChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicInputChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) + ) ) self._clock = SearchSearchItemTriggerALogicInputClock(device, f"{self._cmd_syntax}:CLOCk") - self._d: Dict[ - int, SearchSearchItemTriggerALogicInputDigitalBit - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicInputDigitalBit( - device, f"{self._cmd_syntax}:D{x}" + self._d: Dict[int, SearchSearchItemTriggerALogicInputDigitalBit] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicInputDigitalBit( + device, f"{self._cmd_syntax}:D{x}" + ) ) ) self._math = SearchSearchItemTriggerALogicInputMath(device, f"{self._cmd_syntax}:MATH") - self._ref: Dict[ - int, SearchSearchItemTriggerALogicInputRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicInputRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerALogicInputRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicInputRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) diff --git a/src/tm_devices/commands/_1l4fot_mdomso/cursor.py b/src/tm_devices/commands/_1l4fot_mdomso/cursor.py index ec3082574..63b18d039 100644 --- a/src/tm_devices/commands/_1l4fot_mdomso/cursor.py +++ b/src/tm_devices/commands/_1l4fot_mdomso/cursor.py @@ -60,6 +60,7 @@ - CURSor:XY:RECTangular:Y:UNIts? - CURSor? """ + from typing import Dict, Optional, TYPE_CHECKING from .._helpers import ( diff --git a/src/tm_devices/commands/_1l5u97_mdomsodpo/measurement.py b/src/tm_devices/commands/_1l5u97_mdomsodpo/measurement.py index 3b9b77c59..51d6357be 100644 --- a/src/tm_devices/commands/_1l5u97_mdomsodpo/measurement.py +++ b/src/tm_devices/commands/_1l5u97_mdomsodpo/measurement.py @@ -105,6 +105,7 @@ - MEASUrement:STATIstics? - MEASUrement? """ # noqa: E501 + from typing import Dict, Optional, TYPE_CHECKING from .._helpers import ( diff --git a/src/tm_devices/commands/_1la1ym_msomdodpo/trigger.py b/src/tm_devices/commands/_1la1ym_msomdodpo/trigger.py index b0675ad3d..d8729d02f 100644 --- a/src/tm_devices/commands/_1la1ym_msomdodpo/trigger.py +++ b/src/tm_devices/commands/_1la1ym_msomdodpo/trigger.py @@ -490,6 +490,7 @@ - TRIGger:STATE? - TRIGger? """ # noqa: E501 + from typing import Dict, Optional, TYPE_CHECKING from .._helpers import ( diff --git a/src/tm_devices/commands/_1lcv3a_msodpomdo/message.py b/src/tm_devices/commands/_1lcv3a_msodpomdo/message.py index 6c8c7c668..937bafe58 100644 --- a/src/tm_devices/commands/_1lcv3a_msodpomdo/message.py +++ b/src/tm_devices/commands/_1lcv3a_msodpomdo/message.py @@ -21,6 +21,7 @@ - MESSage:STATE? - MESSage? """ + from typing import Optional, TYPE_CHECKING from .._helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments diff --git a/src/tm_devices/commands/_1lcv3a_msodpomdo/setup_1.py b/src/tm_devices/commands/_1lcv3a_msodpomdo/setup_1.py index c2a3d034e..f127f2943 100644 --- a/src/tm_devices/commands/_1lcv3a_msodpomdo/setup_1.py +++ b/src/tm_devices/commands/_1lcv3a_msodpomdo/setup_1.py @@ -15,6 +15,7 @@ - SETUP:LABEL - SETUP:TIME? """ + from typing import Optional, TYPE_CHECKING from .._helpers import SCPICmdRead, SCPICmdWrite, ValidatedDynamicNumberCmd diff --git a/src/tm_devices/commands/_1lh2st_msodpo/search.py b/src/tm_devices/commands/_1lh2st_msodpo/search.py index f332072e2..b2dea9fb0 100644 --- a/src/tm_devices/commands/_1lh2st_msodpo/search.py +++ b/src/tm_devices/commands/_1lh2st_msodpo/search.py @@ -425,6 +425,7 @@ - SEARCH:SEARCH:TRIGger:A:UPPerthreshold:REF? - SEARCH? """ # noqa: E501 + from typing import Dict, Optional, TYPE_CHECKING from .._helpers import ( @@ -550,19 +551,19 @@ class SearchSearchItemTriggerAUpperthreshold(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerAUpperthresholdChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerAUpperthresholdChannel( - device, f"{self._cmd_syntax}:CH{x}" + self._ch: Dict[int, SearchSearchItemTriggerAUpperthresholdChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerAUpperthresholdChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) ) ) self._math = SearchSearchItemTriggerAUpperthresholdMath(device, f"{self._cmd_syntax}:MATH") - self._ref: Dict[ - int, SearchSearchItemTriggerAUpperthresholdRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerAUpperthresholdRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerAUpperthresholdRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerAUpperthresholdRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) @@ -1311,11 +1312,11 @@ class SearchSearchItemTriggerASetholdThreshold(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ref: Dict[ - int, SearchSearchItemTriggerASetholdThresholdRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerASetholdThresholdRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerASetholdThresholdRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerASetholdThresholdRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) self._math = SearchSearchItemTriggerASetholdThresholdMath( @@ -3191,19 +3192,19 @@ class SearchSearchItemTriggerALowerthreshold(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerALowerthresholdChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALowerthresholdChannel( - device, f"{self._cmd_syntax}:CH{x}" + self._ch: Dict[int, SearchSearchItemTriggerALowerthresholdChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALowerthresholdChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) ) ) self._math = SearchSearchItemTriggerALowerthresholdMath(device, f"{self._cmd_syntax}:MATH") - self._ref: Dict[ - int, SearchSearchItemTriggerALowerthresholdRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALowerthresholdRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerALowerthresholdRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALowerthresholdRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) self._rf_frequency = SearchSearchItemTriggerALowerthresholdRfFrequency( @@ -3479,19 +3480,19 @@ class SearchSearchItemTriggerALogicThreshold(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerALogicThresholdChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicThresholdChannel( - device, f"{self._cmd_syntax}:CH{x}" + self._ch: Dict[int, SearchSearchItemTriggerALogicThresholdChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicThresholdChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) ) ) self._math = SearchSearchItemTriggerALogicThresholdMath(device, f"{self._cmd_syntax}:MATH") - self._ref: Dict[ - int, SearchSearchItemTriggerALogicThresholdRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicThresholdRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerALogicThresholdRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicThresholdRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) @@ -3809,11 +3810,11 @@ class SearchSearchItemTriggerALogicPatternInput(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerALogicPatternInputChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicPatternInputChannel( - device, f"{self._cmd_syntax}:CH{x}" + self._ch: Dict[int, SearchSearchItemTriggerALogicPatternInputChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicPatternInputChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) ) ) @@ -4236,25 +4237,27 @@ class SearchSearchItemTriggerALogicInput(SCPICmdRead): def __init__(self, device: Optional["PIDevice"], cmd_syntax: str) -> None: super().__init__(device, cmd_syntax) - self._ch: Dict[ - int, SearchSearchItemTriggerALogicInputChannel - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicInputChannel(device, f"{self._cmd_syntax}:CH{x}") + self._ch: Dict[int, SearchSearchItemTriggerALogicInputChannel] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicInputChannel( + device, f"{self._cmd_syntax}:CH{x}" + ) + ) ) self._clock = SearchSearchItemTriggerALogicInputClock(device, f"{self._cmd_syntax}:CLOCk") - self._d: Dict[ - int, SearchSearchItemTriggerALogicInputDigitalBit - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicInputDigitalBit( - device, f"{self._cmd_syntax}:D{x}" + self._d: Dict[int, SearchSearchItemTriggerALogicInputDigitalBit] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicInputDigitalBit( + device, f"{self._cmd_syntax}:D{x}" + ) ) ) self._math = SearchSearchItemTriggerALogicInputMath(device, f"{self._cmd_syntax}:MATH") - self._ref: Dict[ - int, SearchSearchItemTriggerALogicInputRefItem - ] = DefaultDictPassKeyToFactory( - lambda x: SearchSearchItemTriggerALogicInputRefItem( - device, f"{self._cmd_syntax}:REF{x}" + self._ref: Dict[int, SearchSearchItemTriggerALogicInputRefItem] = ( + DefaultDictPassKeyToFactory( + lambda x: SearchSearchItemTriggerALogicInputRefItem( + device, f"{self._cmd_syntax}:REF{x}" + ) ) ) diff --git a/src/tm_devices/commands/_1ltpwt_mdomsodpo/actonevent.py b/src/tm_devices/commands/_1ltpwt_mdomsodpo/actonevent.py index fa4a97e97..0eab870f3 100644 --- a/src/tm_devices/commands/_1ltpwt_mdomsodpo/actonevent.py +++ b/src/tm_devices/commands/_1ltpwt_mdomsodpo/actonevent.py @@ -37,6 +37,7 @@ - ACTONEVent:REPEATCount - ACTONEVent:REPEATCount? """ + from typing import Optional, TYPE_CHECKING from .._helpers import SCPICmdRead, SCPICmdWrite diff --git a/src/tm_devices/commands/_1ltpwt_mdomsodpo/afg.py b/src/tm_devices/commands/_1ltpwt_mdomsodpo/afg.py index 48647be73..60877789d 100644 --- a/src/tm_devices/commands/_1ltpwt_mdomsodpo/afg.py +++ b/src/tm_devices/commands/_1ltpwt_mdomsodpo/afg.py @@ -60,6 +60,7 @@ - AFG:SQUare:DUty - AFG:SQUare:DUty? """ # noqa: E501 + from typing import Dict, Optional, TYPE_CHECKING from .._helpers import ( diff --git a/src/tm_devices/commands/_1ltpwt_mdomsodpo/alias.py b/src/tm_devices/commands/_1ltpwt_mdomsodpo/alias.py index 2666b2dd4..4c04c3cf8 100644 --- a/src/tm_devices/commands/_1ltpwt_mdomsodpo/alias.py +++ b/src/tm_devices/commands/_1ltpwt_mdomsodpo/alias.py @@ -18,6 +18,7 @@ - ALIas:STATE {|OFF|ON} - ALIas:STATE? """ + from typing import Optional, TYPE_CHECKING from .._helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments diff --git a/src/tm_devices/commands/_1ltpwt_mdomsodpo/application.py b/src/tm_devices/commands/_1ltpwt_mdomsodpo/application.py index de6252f28..8b458d84a 100644 --- a/src/tm_devices/commands/_1ltpwt_mdomsodpo/application.py +++ b/src/tm_devices/commands/_1ltpwt_mdomsodpo/application.py @@ -17,6 +17,7 @@ - APPLication:TYPe {POWer|LIMITMask|VIDPic|ACTONEVent|NONe} - APPLication:TYPe? """ + from typing import Dict, Optional, TYPE_CHECKING from .._helpers import ( diff --git a/src/tm_devices/commands/_1ltpwt_mdomsodpo/autoset.py b/src/tm_devices/commands/_1ltpwt_mdomsodpo/autoset.py index 802f5dfdb..0cb3eaa01 100644 --- a/src/tm_devices/commands/_1ltpwt_mdomsodpo/autoset.py +++ b/src/tm_devices/commands/_1ltpwt_mdomsodpo/autoset.py @@ -15,6 +15,7 @@ - AUTOSet:ENAble {OFF|ON|0|1} - AUTOSet:ENAble? """ + from typing import Optional, TYPE_CHECKING from .._helpers import SCPICmdRead, SCPICmdWrite diff --git a/src/tm_devices/commands/_1ltpwt_mdomsodpo/auxin.py b/src/tm_devices/commands/_1ltpwt_mdomsodpo/auxin.py index 67f5f808c..dd27fba3a 100644 --- a/src/tm_devices/commands/_1ltpwt_mdomsodpo/auxin.py +++ b/src/tm_devices/commands/_1ltpwt_mdomsodpo/auxin.py @@ -30,6 +30,7 @@ - AUXin:PRObe? - AUXin? """ + from typing import Optional, TYPE_CHECKING from .._helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments diff --git a/src/tm_devices/commands/_1ltpwt_mdomsodpo/auxout.py b/src/tm_devices/commands/_1ltpwt_mdomsodpo/auxout.py index a2a77dc01..8370e7588 100644 --- a/src/tm_devices/commands/_1ltpwt_mdomsodpo/auxout.py +++ b/src/tm_devices/commands/_1ltpwt_mdomsodpo/auxout.py @@ -14,6 +14,7 @@ - AUXOut:SOUrce {ATRIGger|MAIn|REFOut|EVENT|AFG} - AUXOut:SOUrce? """ + from typing import Optional, TYPE_CHECKING from .._helpers import SCPICmdRead, SCPICmdWrite diff --git a/src/tm_devices/commands/_1ltpwt_mdomsodpo/bus.py b/src/tm_devices/commands/_1ltpwt_mdomsodpo/bus.py index 752bc0812..cec40a1b6 100644 --- a/src/tm_devices/commands/_1ltpwt_mdomsodpo/bus.py +++ b/src/tm_devices/commands/_1ltpwt_mdomsodpo/bus.py @@ -227,6 +227,7 @@ - BUS:UPPerthreshold:REF? - BUS? """ + from typing import Dict, Optional, TYPE_CHECKING from .._helpers import ( diff --git a/src/tm_devices/commands/_1ltpwt_mdomsodpo/calibrate.py b/src/tm_devices/commands/_1ltpwt_mdomsodpo/calibrate.py index 48687fcd1..ca00673bc 100644 --- a/src/tm_devices/commands/_1ltpwt_mdomsodpo/calibrate.py +++ b/src/tm_devices/commands/_1ltpwt_mdomsodpo/calibrate.py @@ -36,6 +36,7 @@ - CALibrate:RF:STATus? - CALibrate:TEMPerature? """ + from typing import Optional, TYPE_CHECKING from .._helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments diff --git a/src/tm_devices/commands/_1ltpwt_mdomsodpo/ch.py b/src/tm_devices/commands/_1ltpwt_mdomsodpo/ch.py index ea574dc75..0bdfcbfe6 100644 --- a/src/tm_devices/commands/_1ltpwt_mdomsodpo/ch.py +++ b/src/tm_devices/commands/_1ltpwt_mdomsodpo/ch.py @@ -66,6 +66,7 @@ - CH:YUNits? - CH? """ + from typing import Optional, TYPE_CHECKING from .._helpers import SCPICmdRead, SCPICmdWrite, ValidatedChannel diff --git a/src/tm_devices/commands/_1ltpwt_mdomsodpo/d.py b/src/tm_devices/commands/_1ltpwt_mdomsodpo/d.py index 0327eaf26..12a8672d5 100644 --- a/src/tm_devices/commands/_1ltpwt_mdomsodpo/d.py +++ b/src/tm_devices/commands/_1ltpwt_mdomsodpo/d.py @@ -19,6 +19,7 @@ - D:THReshold {ECL|TTL|} - D:THReshold? """ + from typing import Optional, TYPE_CHECKING from .._helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments, ValidatedDigitalBit diff --git a/src/tm_devices/commands/_1ltpwt_mdomsodpo/data.py b/src/tm_devices/commands/_1ltpwt_mdomsodpo/data.py index d31560a34..e5fdafb66 100644 --- a/src/tm_devices/commands/_1ltpwt_mdomsodpo/data.py +++ b/src/tm_devices/commands/_1ltpwt_mdomsodpo/data.py @@ -27,6 +27,7 @@ - DATa:WIDth? - DATa? """ # noqa: E501 + from typing import Optional, TYPE_CHECKING from .._helpers import SCPICmdRead, SCPICmdWrite diff --git a/src/tm_devices/commands/_1ltpwt_mdomsodpo/diag.py b/src/tm_devices/commands/_1ltpwt_mdomsodpo/diag.py index 8c440a73c..d6355c597 100644 --- a/src/tm_devices/commands/_1ltpwt_mdomsodpo/diag.py +++ b/src/tm_devices/commands/_1ltpwt_mdomsodpo/diag.py @@ -22,6 +22,7 @@ - DIAg:SELect {ALL|APPKey|CPU|DISplay|FPAnel|IO|ROM|ACQ|RF|AFG} - DIAg:STATE {EXECute|ABORt} """ + from typing import Optional, TYPE_CHECKING from .._helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments diff --git a/src/tm_devices/commands/_1ltpwt_mdomsodpo/dvm.py b/src/tm_devices/commands/_1ltpwt_mdomsodpo/dvm.py index d61e9987c..cd92d34d4 100644 --- a/src/tm_devices/commands/_1ltpwt_mdomsodpo/dvm.py +++ b/src/tm_devices/commands/_1ltpwt_mdomsodpo/dvm.py @@ -28,6 +28,7 @@ - DVM:SOUrce {CH} - DVM:SOUrce? """ + from typing import Optional, TYPE_CHECKING from .._helpers import SCPICmdRead, SCPICmdWrite diff --git a/src/tm_devices/commands/_1ltpwt_mdomsodpo/email.py b/src/tm_devices/commands/_1ltpwt_mdomsodpo/email.py index 818725201..f4515d1b6 100644 --- a/src/tm_devices/commands/_1ltpwt_mdomsodpo/email.py +++ b/src/tm_devices/commands/_1ltpwt_mdomsodpo/email.py @@ -23,6 +23,7 @@ - EMAIL:SETUp:SMTPServer - EMAIL:SETUp:SMTPServer? """ + from typing import Optional, TYPE_CHECKING from .._helpers import SCPICmdRead, SCPICmdWrite diff --git a/src/tm_devices/commands/_1ltpwt_mdomsodpo/ethernet.py b/src/tm_devices/commands/_1ltpwt_mdomsodpo/ethernet.py index f0a593f86..c8e2be6de 100644 --- a/src/tm_devices/commands/_1ltpwt_mdomsodpo/ethernet.py +++ b/src/tm_devices/commands/_1ltpwt_mdomsodpo/ethernet.py @@ -44,6 +44,7 @@ - ETHERnet:SUBNETMask - ETHERnet:SUBNETMask? """ + from typing import Optional, TYPE_CHECKING from .._helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments diff --git a/src/tm_devices/commands/_1ltpwt_mdomsodpo/filesystem.py b/src/tm_devices/commands/_1ltpwt_mdomsodpo/filesystem.py index 3427cf055..46fd7d620 100644 --- a/src/tm_devices/commands/_1ltpwt_mdomsodpo/filesystem.py +++ b/src/tm_devices/commands/_1ltpwt_mdomsodpo/filesystem.py @@ -29,6 +29,7 @@ - FILESystem:WRITEFile , - FILESystem? """ + from typing import Optional, TYPE_CHECKING from .._helpers import SCPICmdRead, SCPICmdWrite, SCPICmdWriteNoArguments diff --git a/src/tm_devices/commands/_1ltpwt_mdomsodpo/fpanel.py b/src/tm_devices/commands/_1ltpwt_mdomsodpo/fpanel.py index d9fac446a..14f5c04ca 100644 --- a/src/tm_devices/commands/_1ltpwt_mdomsodpo/fpanel.py +++ b/src/tm_devices/commands/_1ltpwt_mdomsodpo/fpanel.py @@ -15,6 +15,7 @@ - FPAnel:PRESS