@@ -125,65 +125,65 @@ def neighbors_even_q(col: int, row: int) -> tuple:
125125
126126
127127_N_ADC_CHANNELS = 7
128- _ADC_SEQUENCE_EVEN = ( 0 , 2 , 5 , 0 , 3 , 5 , 1 , 3 , 6 , 1 , 4 , 6 , 2 , 4 )
129- _ADC_SEQUENCE_ODD = ( 0 , 3 , 5 , 1 , 3 , 6 , 1 , 4 , 6 , 2 , 4 , 0 , 2 , 5 )
128+ _ADC_SEQUENCE_EVEN = np . array ([ 0 , 2 , 5 , 0 , 3 , 5 , 1 , 3 , 6 , 1 , 4 , 6 , 2 , 4 ] )
129+ _ADC_SEQUENCE_ODD = np . array ([ 0 , 3 , 5 , 1 , 3 , 6 , 1 , 4 , 6 , 2 , 4 , 0 , 2 , 5 ] )
130130_ADC_SEQUENCE_LENGTH = len (_ADC_SEQUENCE_EVEN )
131131
132132
133- def adc_channel_odd_r (col : int , row : int ) -> int :
133+ def adc_channel_odd_r (col : np . ndarray , row : np . ndarray ) -> np . ndarray :
134134 """Transformation from offset coordinates (col, row) into 7-adc channel label,
135135 that is an int between 0 and 6, for ODD_R grid layout.
136136
137137 Arguments
138138 ---------
139- col: int
139+ col: array_like
140140 column pixel logical coordinate
141- row: int
141+ row: array_like
142142 row pixel logical coordinate
143143 """
144144 start = _ADC_SEQUENCE_ODD [row % _ADC_SEQUENCE_LENGTH ]
145145 index = (col + start ) % _N_ADC_CHANNELS
146146 return index
147147
148- def adc_channel_even_r (col : int , row : int ) -> int :
148+ def adc_channel_even_r (col : np . ndarray , row : np . ndarray ) -> np . ndarray :
149149 """Transformation from offset coordinates (col, row) into 7-adc channel label,
150150 that is an int between 0 and 6, for EVEN_R grid layout.
151151
152152 Arguments
153153 ---------
154- col: int
154+ col: array_like
155155 column pixel logical coordinate
156- row: int
156+ row: array_like
157157 row pixel logical coordinate
158158 """
159159 start = _ADC_SEQUENCE_EVEN [row % _ADC_SEQUENCE_LENGTH ]
160160 index = (col + start ) % _N_ADC_CHANNELS
161161 return index
162162
163- def adc_channel_odd_q (col : int , row : int ) -> int :
163+ def adc_channel_odd_q (col : np . ndarray , row : np . ndarray ) -> np . ndarray :
164164 """Transformation from offset coordinates (col, row) into 7-adc channel label,
165165 that is an int between 0 and 6, for ODD_Q grid layout.
166166
167167 Arguments
168168 ---------
169- col: int
169+ col: array_like
170170 column pixel logical coordinate
171- row: int
171+ row: array_like
172172 row pixel logical coordinate
173173 """
174174 start = _ADC_SEQUENCE_ODD [col % _ADC_SEQUENCE_LENGTH ]
175175 index = (row + start ) % _N_ADC_CHANNELS
176176 return index
177177
178- def adc_channel_even_q (col : int , row : int ) -> int :
178+ def adc_channel_even_q (col : np . ndarray , row : np . ndarray ) -> np . ndarray :
179179 """Transformation from offset coordinates (col, row) into 7-adc channel label,
180180 that is an int between 0 and 6, for EVEN_Q grid layout.
181181
182182 Arguments
183183 ---------
184- col: int
184+ col: array_like
185185 column pixel logical coordinate
186- row: int
186+ row: array_like
187187 row pixel logical coordinate
188188 """
189189 start = _ADC_SEQUENCE_EVEN [col % _ADC_SEQUENCE_LENGTH ]
0 commit comments