@@ -147,7 +147,7 @@ def get_wavelengths(self) -> NDArray[np.float64]:
147147 coeffs .append (
148148 float (self ._eeprom_cls ._func_eeprom_read_slot (self .protocol , i ))
149149 )
150- return sum (wl * (indices ** i ) for i , wl in enumerate (coeffs )) # type: ignore
150+ return sum (wl * (indices ** i ) for i , wl in enumerate (coeffs ))
151151
152152 def get_intensities (self ) -> NDArray [np .float64 ]:
153153 tmp = self ._get_spectrum_raw ()
@@ -425,11 +425,11 @@ def get_wavelengths(self) -> NDArray[np.float64]:
425425 coeffs .append (struct .unpack ("<f" , data )[0 ])
426426 # and generate the wavelength array
427427 indices = numpy .arange (self ._spectrum_length , dtype = numpy .float64 )
428- return sum (wl * (indices ** i ) for i , wl in enumerate (coeffs )) # type: ignore
428+ return sum (wl * (indices ** i ) for i , wl in enumerate (coeffs ))
429429
430430 def get_intensities (self ) -> NDArray [np .float64 ]:
431431 tmp = self ._get_spectrum_raw ()
432- arr = struct .unpack ("<" + "H" * self ._spectrum_length , tmp ) # type: ignore
432+ arr = struct .unpack ("<" + "H" * self ._spectrum_length , tmp )
433433 return numpy .array (arr , dtype = numpy .float64 )
434434
435435 def _get_spectrum_raw (self ) -> NDArray [np .uint8 ]:
@@ -489,7 +489,7 @@ def get_wavelengths(self) -> NDArray[np.float64]:
489489 SeaBreezeEEPromFeatureOOI ._func_eeprom_read_slot (self .protocol , i )
490490 )
491491 )
492- return sum (wl * (indices ** i ) for i , wl in enumerate (coeffs )) # type: ignore
492+ return sum (wl * (indices ** i ) for i , wl in enumerate (coeffs ))
493493
494494 def get_intensities (self ) -> NDArray [np .float64 ]:
495495 tmp = self ._get_spectrum_raw ()
@@ -643,7 +643,7 @@ def get_wavelengths(self) -> NDArray[np.float64]:
643643 coeffs = struct .unpack ("<" + "f" * num_coeffs , data )[1 :]
644644 # and generate the wavelength array
645645 indices = numpy .arange (self ._spectrum_length , dtype = numpy .float64 )
646- return sum (wl * (indices ** i ) for i , wl in enumerate (coeffs )) # type: ignore
646+ return sum (wl * (indices ** i ) for i , wl in enumerate (coeffs ))
647647
648648
649649class SeaBreezeSpectrometerFeatureOBP2 (SeaBreezeSpectrometerFeatureOBP ):
@@ -684,7 +684,7 @@ def get_wavelengths(self) -> NDArray[np.float64]:
684684 coeffs = struct .unpack ("<" + "f" * num_coeffs , data )[1 :]
685685 # and generate the wavelength array
686686 indices = numpy .arange (self ._spectrum_length , dtype = numpy .float64 )
687- return sum (wl * (indices ** i ) for i , wl in enumerate (coeffs )) # type: ignore
687+ return sum (wl * (indices ** i ) for i , wl in enumerate (coeffs ))
688688
689689
690690class SeaBreezeSpectrometerFeatureSR4 (SeaBreezeSpectrometerFeatureOBP2 ):
@@ -737,7 +737,7 @@ def get_wavelengths(self) -> NDArray[np.float64]:
737737 coeffs = struct .unpack ("<" + "f" * num_coeffs , data )[1 :]
738738 # and generate the wavelength array
739739 indices = numpy .arange (self ._spectrum_length , dtype = numpy .float64 )
740- return sum (wl * (indices ** i ) for i , wl in enumerate (coeffs )) # type: ignore
740+ return sum (wl * (indices ** i ) for i , wl in enumerate (coeffs ))
741741
742742
743743class SeaBreezeSpectrometerFeatureHR4 (SeaBreezeSpectrometerFeatureOBP2 ):
0 commit comments