File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed 
examples/niscope/niscope_binary_acquisition Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 4747
4848            with  session .initiate ():
4949                data_size  =  panel .get_value ("data_size" , 8 )
50+                 wfm : np .ndarray [Any , Any ]
51+ 
5052                if  data_size  ==  8 :
51-                     wfm : np .ndarray [Any , np .dtype [np .int8 ]] =  np .ndarray (  # type: ignore 
52-                         1000  *  1000 , dtype = np .int8 
53-                     )
53+                     wfm  =  np .ndarray (1000  *  1000 , dtype = np .int8 )
54+ 
5455                elif  data_size  ==  16 :
55-                     wfm : np .ndarray [Any , np .dtype [np .int16 ]] =  np .ndarray (  # type: ignore 
56-                         1000  *  1000 , dtype = np .int16 
57-                     )
56+                     wfm  =  np .ndarray (1000  *  1000 , dtype = np .int16 )
5857                else :
59-                     wfm : np .ndarray [Any , np .dtype [np .int32 ]] =  np .ndarray (
60-                         1000  *  1000 , dtype = np .int32 
61-                     )
58+                     wfm  =  np .ndarray (1000  *  1000 , dtype = np .int32 )
6259
6360                waveforms  =  session .channels [panel .get_value ("channel" , 0 )].fetch_into (
6461                    relative_to = niscope .FetchRelativeTo .READ_POINTER ,
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments