Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tiagocoutinho/hamamatsu
Python library for hamamatsu detectors (lima plugin included)
https://github.com/tiagocoutinho/hamamatsu
camera hamamatsu lima python tango tango-server
Last synced: 2 months ago
JSON representation
Python library for hamamatsu detectors (lima plugin included)
- Host: GitHub
- URL: https://github.com/tiagocoutinho/hamamatsu
- Owner: tiagocoutinho
- License: gpl-3.0
- Created: 2021-02-03T21:16:18.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-10T12:24:03.000Z (almost 2 years ago)
- Last Synced: 2024-10-11T07:43:46.109Z (3 months ago)
- Topics: camera, hamamatsu, lima, python, tango, tango-server
- Language: Python
- Homepage:
- Size: 1.06 MB
- Stars: 11
- Watchers: 3
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://tango-controls.org/) 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
```python
import logging
from hamamatsu.dcam import copy_frame, dcam, Streamlogging.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](https://lima1.rtfd.io/en/latest/applications/tango/python/doc/index.html)
## Simulator
Only simulates a RemoteEx TCP interface.
Under development.