Skip to main content

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 LyncéeTec to control Digital Holographique Microscope using proprietary Koala software

The wrapper uses the same methods names and arguments as the dotNet library distributed by LyncéeTec SA LynceeTec.KoalaRemote.Client. 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

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
  • 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

pyKoalaRemote-0.0.2.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyKoalaRemote-0.0.2-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file pyKoalaRemote-0.0.2.tar.gz.

File metadata

  • Download URL: pyKoalaRemote-0.0.2.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for pyKoalaRemote-0.0.2.tar.gz
Algorithm Hash digest
SHA256 692e0347e499e25ba4517ba1e664e386ad506a068dc2e59f752f03be0446af4c
MD5 2eaa190a14cfc26c3f2f55820ab2fba7
BLAKE2b-256 e5a16e0536160cf798fd6f92a6de228f548896aa84603b2a727d3dd61cf56334

See more details on using hashes here.

File details

Details for the file pyKoalaRemote-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pyKoalaRemote-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for pyKoalaRemote-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fb26fa1f8ea1a49c9f5369ea313dda765ca442264905c5c91db9fdea2a98e635
MD5 46583e56836bd693bdf72abb27c4123f
BLAKE2b-256 f7febf06a9ce4dfdf283eec6c41bfa0bf7bffdb848e4707a9cbed0fca70b52f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page