Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ianhi/raman-control
https://github.com/ianhi/raman-control
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ianhi/raman-control
- Owner: ianhi
- Created: 2020-09-22T03:05:19.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-02T22:12:43.000Z (4 months ago)
- Last Synced: 2024-10-17T21:54:21.373Z (3 months ago)
- Language: Python
- Size: 365 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# raman-control
Control code for the laser components of a custom raman microscope. This probably isn't useful to you except as an example of integrating custom controls with [pymmcore-plus](https://pymmcore-plus.readthedocs.io/en/latest/). This is the core code that interacts with the hardware, for the interface with pymmcore-plus see my [raman-mda-engine](https://github.com/ianhi/raman-mda-engine#raman-mda-engine).
## Installation:
Probably just useful for Ian and KosekiOn linux you can't install `pythonnet` so this won't work. But to make typing easier for developing the mda engine it's an optional dependency.
For a working installation:
`pip install pythonnet`
install the princetoninstruments python library following their instructions. Then do:
`pip install git+https://github.com/ianhi/raman-control`
or
`pip install -e .[full]`
## Basic Usage
```python
from raman_control.spectra import SpectraCollector# get a singleton object so we don't double initialize
collector = SpectraCollector.instance()points = ... # shape 2xN
spec = collector.collect_spectra(points, exposure=500 #msec)
```