server
esea_info 3 years ago
parent 7abcfde90f
commit e473e5a046
  1. 6
      Ramses.py

@ -125,8 +125,8 @@ class Ramses(object):
def __ConvertBytesToInt(self ) -> None: def __ConvertBytesToInt(self ) -> None:
res = {} res = {}
d = [] # List [ Tuple[ it:int, sing_set:tuple[int] ] ] d = [] # List [ Tuple[ it:int, sing_set:tuple[int] ] ]
print(f" ================= ") # print(f" ================= ")
print(f" {self.buf.hex()} ") # print(f" {self.buf.hex()} ")
self.it = 2 << int(self.buf[1]) # integrated time self.it = 2 << int(self.buf[1]) # integrated time
# self.it = 2 << int(self.buf[0]) # integrated time # self.it = 2 << int(self.buf[0]) # integrated time
self.light_int = struct.unpack( self.light_int = struct.unpack(
@ -134,7 +134,7 @@ class Ramses(object):
HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH \ HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH \
HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH \ HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH \
HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH", self.buf[2:]) HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH", self.buf[2:])
print( self.light_int ) # print( self.light_int )
def __CalibrateSpectrumData(self ,) : def __CalibrateSpectrumData(self ,) :
t0 = 8092 t0 = 8092

Loading…
Cancel
Save