Hamamatsu python library
This library is used to control basic features of Hamamatsu cameras. It is composed of a core library, an optional simulator and an optional lima plugin together with its tango device class.
It has been tested with C11440-36U model, but should work with other models.
Installation
From within your favorite python environment type:
$ pip install hamamatsu
Usage
import logging
from hamamatsu.dcam import dcam, Stream
logging.basicConfig(level=logging.INFO)
with dcam:
camera = dcam[0]
with camera:
print(camera.info)
print(camera['image_width'].value, camera['image_height'].value)
# Simple acquisition example
nb_frames = 10
camera["exposure_time"] = 0.1
with Stream(camera, nb_frames) as stream:
logging.info("start acquisition")
camera.start()
for i, frame_buffer in enumerate(stream):
frame = copy_frame(frame_buffer)
logging.info(f"acquired frame #%d/%d: %s", i+1, nb_frames, frame)
logging.info("finished acquisition")
Lima
Install extra dependencies with:
$ pip install hamamatsu[lima]
Command line usage:
$ limatb hamamatsu scan
$ limatb hamamatu -i 0 info
$ limatb hamamatu -i 0 dump
$ limatb hamamatu -i 0 acquire -n 10 -e 0.1
Tango
Please refer to the Lima documentation
Simulator
Only simulates a RemoteEx TCP interface. Under development.
Metadata
Release files for hamamatsu 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| hamamatsu-0.1.2.tar.gz | 25.0 kB | Without provenance | Details |
Release files / hamamatsu-0.1.2.tar.gz
| Download URL | hamamatsu-0.1.2.tar.gz |
|---|---|
| Size | 25.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7bfbc624574bb03227542f46b7040cf0af24c85b682c6aae30c785f035b822e5
|
|
BLAKE2b-256 checksum How to use checksums |
e8d93fee8c89c5b15ea8c02034a88d4d2d252ae8d5672360038d913885641967
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3.post20210118 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.7.9
|
Security for hamamatsu 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.