Skip to content

Commit

Permalink
docs: updated the get_resources() doc string to add clarity to it's f…
Browse files Browse the repository at this point in the history
…unctionality.
  • Loading branch information
rsbrost committed Jul 9, 2024
1 parent 2a2b566 commit 6e0e25c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyscan/general/get_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

def get_resources(list_resources=True):
"""
Returns a list of connected VISA GPIB addresses and optionally
(by default) prints them paired with their corresponding ID strings.
Returns a list of connected VISA GPIB addresses and optionally (by default)
tries to print them paired with their corresponding ID strings.
This function uses the PyVISA library to return a list of all resources (instruments) available to the system.
It tries to connect to each instrument and prints the error message if unable to.
Expand All @@ -13,7 +13,7 @@ def get_resources(list_resources=True):
Parameters
----------
list_resources : bool
If True (default), queries and prints instrument connection addresses paired with their ID strings.
If True (default), queries and prints instrument connection addresses paired with their ID strings if available.
If False, only returns the available resources without querying their IDs.
Returns
Expand Down

0 comments on commit 6e0e25c

Please sign in to comment.