Skip to content

Commit

Permalink
updtae docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
johanmazoyer committed Jun 25, 2024
1 parent 7ef9ae7 commit 6ebbd76
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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')

Expand Down Expand Up @@ -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')

Expand Down

0 comments on commit 6ebbd76

Please sign in to comment.