Explorar o código

optical channel bugfix

Tharmetharan Balendran %!s(int64=5) %!d(string=hai) anos
pai
achega
2e157f7def
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      models/optical_channel.py

+ 1 - 1
models/optical_channel.py

@@ -127,7 +127,7 @@ class OpticalChannel(defs.Channel):
 
 
         # Symbol Decisions
         # Symbol Decisions
         idx = np.arange(self.filter_samples/2, t.shape[0] - (self.filter_samples/2),
         idx = np.arange(self.filter_samples/2, t.shape[0] - (self.filter_samples/2),
-                        self.symbol_period/self.sample_period, dtype='int16')
+                        self.symbol_period/self.sample_period, dtype='int64')
         t_descision = self.sample_period * idx
         t_descision = self.sample_period * idx
 
 
         if self.show_graphs:
         if self.show_graphs: