Last active
December 7, 2017 14:04
-
-
Save thomasaarholt/6bf0588f6178d3a9657e05e87c691ebe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### The intention is to create a script that acquires both from the secondary electron detector | |
### and the CL detector (UV spectrometer) whilst scanning over a rectangular grid on the sample. | |
# In order to define the various streams, I import the following | |
from odemis.acq.stream import SEMStream, CameraStream, SEMMDStream | |
from odemis import model | |
escan = model.getComponent(name="SEM E-beam") | |
sed = model.getComponent(name="SEM Detector") | |
spec = model.getComponent(name="UV Spectrometer") | |
# Then I create the streams: | |
SEM = SEMStream('SEM', detector=sed, dataflow=sed.data, emitter=escan) | |
CL = CameraStream('CL', detector=spec, dataflow=spec.data, emitter=escan) | |
# And create a multipledetector-stream: | |
BOTH = SEMMDStream('both', main_stream=CL, rep_stream=SEM) | |
# Then I would somehow set the correct parameters for the acquisition | |
''' | |
escan.resolution.value = ... | |
escan.dwellTime.value = ... | |
etc. | |
''' | |
# Then somehow acquire: | |
BOTH.acquire() | |
# Later find data at | |
CLdata = BOTH._main_raw | |
SEMdata = BOTH._repr_raw |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment