Python wrapper for dotNet Koala Remote Client provided by LyncéeTec to control Digital Holographique Microscope using proprietary Koala software
Project description
pyKoalaRemote
Python wrapper for dotNet Koala Remote Client provided by LynceeTec to control Digital Holographic Microscope using proprietary Koala software
The wrapper uses the same methods names and arguments as the dotNet library distributed by LynceeTec SA LynceeTec.KoalaRemote.Client for Koala version 8.6.25517.0-beta. LynceeTec.KoalaRemote.Client.dll documentation
Methods that return a dotNet Array are modified to return a Numpy Array, modified methods are described bellow.
Installation using pip
pip install pyKoalaRemote
Test
From Ipython console
from pyKoalaRemote import client
run client
Usage
Import the class client from the pyKoalaRemote and create an instance
from pyKoalaRemote import client
remote = client.pyKoalaRemoteClient()
Run standard methods
remote.Connect("localhost")
remote.Login("password")
remote.OpenConfig(137)
New methods
Two new methods enable a dialog in the console.
- ConnectAndLoginDialog
- Arguments : void(nothing)
- Return : true if the connection and login was successful
- Comments :
- Connect and Login to Koala within a single function.
- IP address and password are defined in the console
- If the user leave empty field, the default value is used
- OpenConfigDialog
- Arguments : void(nothing)
- Return : true if the connection and login was successful
- Comments :
- Config number is defined in the console
- GetPhaseProfileAxis
- Description : return calibrated axis in [um] of a profile cut
- Arguments : void(nothing)
- Return : 1D Numpy array of np.double of profile length
Modified methods
The methods that returns dotNet Array are modified to return Numpy Array
- Connect(hostname, quiet=True)
- Arguments :
- hostName (String): The IP of the computer where Koala is running. Use localhost if running on the same computer
- quiet (Boolean): Deprecated parameter, will be removed in a later version. Set either to true or false
- Return : true if the connection was successful
- Comments : the instance variable username is set with username
- Arguments :
- GetAxesPosMu
- Arguments : void (nothing)
- Return : 1D Numpy array of np.double of size 4, where the data for the X, Y, Z and Theta axis respectively
- GetHoloImage
- Arguments : void (nothing)
- Return : 2D Numpy array of np.ubyte of hologram size
- GetIntensityImage
- Arguments : void (nothing)
- Return : 2D Numpy array of np.ubyte of ROI size
- GetIntensity32fImage
- Arguments : void (nothing)
- Return : 2D Numpy array of np.single of ROI size
- GetPhaseImage
- Arguments : void (nothing)
- Return : 2D Numpy array of np.ubyte of ROI size
- GetPhase32fImage
- Arguments : void (nothing)
- Return : 2D Numpy array of np.single of ROI size
- GetPhaseProfile
- Arguments : void (nothing)
- Return : 1D Numpy array of np.double of profile length
Written with StackEdit.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pykoalaremote-1.1.0.tar.gz
.
File metadata
- Download URL: pykoalaremote-1.1.0.tar.gz
- Upload date:
- Size: 26.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e2dbaf301d6533e69faefa151370e693e6735e3085586053e9872df3cd3feee |
|
MD5 | 4ced54bf5bb759b896aced02bca45876 |
|
BLAKE2b-256 | 4431e7fbf92340fa8cf6883541e68dc7ff246988f959cbd09ee65a175426faee |
File details
Details for the file pyKoalaRemote-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: pyKoalaRemote-1.1.0-py3-none-any.whl
- Upload date:
- Size: 25.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2134087077c220fdeda105ff4b35376b8a533eb5c47b8a2795ec3b760221f58e |
|
MD5 | 45a8f6d612ade114d1b1e15234559483 |
|
BLAKE2b-256 | d211e1f3c9698bd361c2d9b3432b5121a5efe617176498b8756e70c5bbc38c6e |