fixed some commented out statements
This commit is contained in:
+4
-4
@@ -28,7 +28,7 @@ class Spectrometer:
|
|||||||
|
|
||||||
def setParameters(self, parameters={}):
|
def setParameters(self, parameters={}):
|
||||||
'''applies the parameters like LED light and gain to the spectrometer'''
|
'''applies the parameters like LED light and gain to the spectrometer'''
|
||||||
# try:
|
try:
|
||||||
if 'it_time' in parameters:
|
if 'it_time' in parameters:
|
||||||
it_time = int(parameters['it_time'])
|
it_time = int(parameters['it_time'])
|
||||||
if it_time <=0 :
|
if it_time <=0 :
|
||||||
@@ -51,9 +51,9 @@ class Spectrometer:
|
|||||||
led=0
|
led=0
|
||||||
self.serialObject.write('ATLED3={}\n'.format(led).encode())
|
self.serialObject.write('ATLED3={}\n'.format(led).encode())
|
||||||
self.serialObject.readline()
|
self.serialObject.readline()
|
||||||
# except:
|
except:
|
||||||
# print('An exception occured during spectrometer initialization')
|
print('An exception occured during spectrometer initialization')
|
||||||
# ex(1)
|
ex(1)
|
||||||
|
|
||||||
def startDataCollection(self):
|
def startDataCollection(self):
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user