Skip to main content

TIPICO: Test Inutile per Provare Inutilmente pliCO

Python package codecov Documentation Status PyPI version

tipico is a useless application to test the plico environment.

Installation

On the client

pip install tipico

On the server

pip install tipico-server

The tipico-server package installs also the client package.

Config files

The server requires to be configured

The application uses appdirs to locate configurations, calibrations and log folders: the path varies as it is OS specific. Typical paths for config files are:

  • On OS X $HOME/Library/Application Support/inaf.arcetri.ao.tipico_server/tipico_server.conf
  • On Ubuntu $HOME/.config/inaf.arcetri.ao.tipico_server/tipico_server.conf

The configuration files are copied when the application is first used from their original location in the python package to the final destination, where they are supposed to be modified by the user. The application never touches an installed file (no delete, no overwriting)

The easiest way of checking which config file is used by the server is to start it (see below) and check for the config file name written in the standard output.

Another way of querying the system for config file location is to run python on the server and type:

import tipico_server
tipico_server.defaultConfigFilePath

The user can specify customized conf/calib/log file path for both servers and client (how? ask!)

Usage

Starting Servers

Starts the 2 servers that control one device each.

tipico_start

Using client

In a Python / IPython shell:

Create a client of the device (suppose the server is running on localhost on port 60010)

In [1]: import tipico

In [2]: instr= tipico.instrument('localhost', 60010)

Get position and move actuator

In [3]: instr.getPosition()
Out[3]: 0

In [6]: instr.moveTo(np.array([42, 3.14]))

In [7]: instr.getPosition()
Out[7]: array([42.  ,  3.14])

Get position and move actuator


In [8]: status=instr.getStatus()

In [9]: status.actuatorCommands()
Out[9]: array([42.  ,  3.14])

In [10]: status.commandCounter()
Out[10]: 1

In [11]: instr.moveTo(np.array([1, 2]))

In [12]: status=instr.getStatus()

In [13]: status.commandCounter()
Out[13]: 2

In [14]: status.actuatorCommands()
Out[14]: array([1, 2])

In [15]: instr.getPosition()
Out[15]: array([1, 2])

In [16]: instr.getSnapshot('tux')
Out[16]: {'tux.COMMAND_COUNTER': 2, 'tux.SERIAL_NUMBER': '1', 'tux.STEP_COUNTER': 17065}

In [17]: instr.getSnapshot('tux')
Out[17]: {'tux.COMMAND_COUNTER': 2, 'tux.SERIAL_NUMBER': '1', 'tux.STEP_COUNTER': 21225}

Stopping Tipico

To kill the servers run

tipico_stop

More hard:

tipico_kill_all

Release files for tipico 0.16.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tipico 0.16.1
File Size Uploaded
tipico-0.16.1.tar.gz 15.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tipico 0.16.1
File Interpreter ABI Platform
tipico-0.16.1-py3-none-any.whl Python 3 none any Details

Total release size: 26.4 kB

Release files / tipico-0.16.1.tar.gz

Download URL tipico-0.16.1.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
da0168e8ec08a3c259a9c9748cbe3927c1d40b46bd41379d81e851f32a461f47
BLAKE2b-256 checksum
How to use checksums
ff4e40aab353c9916c54fab914d526e8d9ad8ce5e72d901d83c681a58771f343
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release files / tipico-0.16.1-py3-none-any.whl

Download URL tipico-0.16.1-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41540d5f0b17efa33ac056090573c8dd6a69c48271a7289160492339753d6fa6
BLAKE2b-256 checksum
How to use checksums
c52472007ece1f53b78a8df67392e200e37e560b76c2de5838153074c60d2900
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release history Release notifications | RSS feed

This release

0.16.1 This release

2 release files

0.16.0

2 release files

0.15.0

2 release files

0.10

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page