The pool.py module#

Summary#

LocalMechanicalPool

Create a pool of Mechanical instances.

available_ports

Get a list of a given number of available ports starting from a specified port number.

Description#

This module is for threaded implementations of the Mechanical interface.

Module detail#

pool.available_ports(n_ports, starting_port=MECHANICAL_DEFAULT_PORT)#

Get a list of a given number of available ports starting from a specified port number.

Parameters:
n_portsint

Number of available ports to return.

starting_port: int, option

Number of the port to start the search from. The default is MECHANICAL_DEFAULT_PORT.