Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updtae docstrings
Browse files Browse the repository at this point in the history
johanmazoyer committed Apr 10, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 4bce925 commit 41cfadb
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ class OceanOpticsSpectrometer(Service):
pixels_number : int
number of pix in the spectrum.
wavelengths : NDArray[numpy.float_]
A NDArray with the wl of the spectrometer.
A NDArray with the wavelengths of the spectrometer.
spectra : DataStream
A data stream to submit spectra from the spectrometer.
should_be_acquiring : threading.Event
@@ -50,14 +50,12 @@ class OceanOpticsSpectrometer(Service):
Get a spectrum from the spectrometer.
exposure_time()
Set the exposure time of the spectrometer.
'''
NUM_FRAMES = 20

def __init__(self):
'''
Create a new OceanOpticsSpectrometer service.
'''
super().__init__('oceanoptics_spectrometer')

@@ -132,7 +130,7 @@ def end_acquisition(self):

def take_one_spectrum(self):
'''
measure one spectrum and submit it to the data stream.
Measure one spectrum and submit it to the data stream.
'''
self.spectra.submit_data(self.spectrometer.intensities(), dtype='float32')

0 comments on commit 41cfadb

Please sign in to comment.