Skip to content

Commit

Permalink
style: Run ruff formatter over the code.
Browse files Browse the repository at this point in the history
  • Loading branch information
nfelt14 committed Mar 4, 2024
1 parent 54112f3 commit 1a71351
Show file tree
Hide file tree
Showing 845 changed files with 2,128 additions and 1,205 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions examples/miscellaneous/adding_devices.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""An example of adding devices via Python code."""

from tm_devices import DeviceManager
from tm_devices.helpers import (
DMConfigOptions,
Expand Down
1 change: 1 addition & 0 deletions examples/miscellaneous/adding_devices_with_env_var.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions examples/miscellaneous/alias_usage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""An example of alias usage."""

from tm_devices import DeviceManager

with DeviceManager(verbose=True) as dm:
Expand Down
1 change: 1 addition & 0 deletions examples/miscellaneous/custom_device_driver_support.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions examples/miscellaneous/disable_command_verification.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
1 change: 1 addition & 0 deletions examples/miscellaneous/pyvisa_resource_access.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Directly access the PyVISA resource object."""

from tm_devices import DeviceManager

with DeviceManager() as device_manager:
Expand Down
1 change: 1 addition & 0 deletions examples/miscellaneous/register_dm_atexit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""An example showing how to register the DeviceManager to close on program exit."""

import atexit

from tm_devices import DeviceManager
Expand Down
1 change: 1 addition & 0 deletions examples/miscellaneous/visa_connection_selectivity.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
1 change: 1 addition & 0 deletions examples/scopes/tekscope/basic_curve_query.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""An example showing a basic curve query."""

from tm_devices import DeviceManager

EXAMPLE_CSV_FILE = "example_curve_query.csv"
Expand Down
1 change: 1 addition & 0 deletions examples/scopes/tekscope/basic_save_recall.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
1 change: 1 addition & 0 deletions examples/scopes/tekscope/generate_internal_afg_signal.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
1 change: 1 addition & 0 deletions examples/scopes/tekscope/get_acquisition_data.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions examples/source_measure_units/2400/smu_2460_pulse_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Converted to Python tm_devices script. DCA 4.7.23
"""

import time

from tm_devices import DeviceManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Converted to Python tm_devices script. DCA 4.7.23
"""

import time

from tm_devices import DeviceManager
Expand Down
1 change: 1 addition & 0 deletions examples/source_measure_units/2400/smu_2461_1kw_pulsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This script creates pulses on the model 2461.
"""

from time import sleep

from tm_devices import DeviceManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
Converted to Python tm_devices script. DCA 4.12.23
"""

import math

from tm_devices import DeviceManager
Expand Down
1 change: 1 addition & 0 deletions examples/source_measure_units/2600/smu_2600_bjt_slow.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Converted to Python tm_devices script. DCA 4.11.23
"""

import time

from typing import Dict, Tuple
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
Converted to Python tm_devices script. DCA 4.12.23
"""

import time

from typing import Dict, Tuple
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
Converted to Python tm_devices script. DCA 4.12.23
"""

from datetime import datetime

from dateutil.tz import tzlocal
Expand Down
1 change: 1 addition & 0 deletions examples/source_measure_units/2600/smu_2657_dioderl_swp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Linear voltage sweep to measure the reverse leakage of a diode."""

import math

from time import sleep
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions examples/system_switch/3700/dmm_3706a_basic_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
Rev: 1-EEB
1.1-Update Function Names-EEB
"""

from tm_devices import DeviceManager
from tm_devices.drivers import SS3706A

Expand Down
1 change: 1 addition & 0 deletions examples/system_switch/3700/dmm_3706a_simple_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
Rev: 1-EEB
1.1-Updated Function Names-EEB
"""

from tm_devices import DeviceManager
from tm_devices.drivers import SS3706A

Expand Down
1 change: 1 addition & 0 deletions examples/system_switch/3700/dmm_3706a_temp_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
Rev: 1-EEB
1.1-Update Function Names-EEB
"""

from tm_devices import DeviceManager
from tm_devices.drivers import SS3706A

Expand Down
1 change: 1 addition & 0 deletions scripts/check_unreleased_changelog_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions scripts/contributor_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This script will run through the commands listed in the CONTRIBUTING.md file.
"""

from __future__ import annotations

import argparse
Expand Down
1 change: 1 addition & 0 deletions scripts/create_post_version_for_testpypi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Create a post-release version for test.pypi.org."""

import argparse

from poetry.core.constraints.version import Version
Expand Down
1 change: 1 addition & 0 deletions scripts/project_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This script modifies or gets the current project version in the pyproject.toml file."""

import argparse
import pathlib

Expand Down
1 change: 1 addition & 0 deletions scripts/pypi_latest_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Get the latest version from the index server."""

import argparse
import json

Expand Down
1 change: 1 addition & 0 deletions scripts/update_development_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/tm_devices/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit 1a71351

Please sign in to comment.