Check the `fid_range` keyword.
(self, fid_range)
| 178 | |
| 179 | # Checking routines used during initialization. |
| 180 | def check_fid_range(self, fid_range): |
| 181 | "Check the `fid_range` keyword." |
| 182 | if fid_range: |
| 183 | if isinstance(fid_range, (tuple, list)): |
| 184 | return slice(*fid_range) |
| 185 | elif isinstance(fid_range, slice): |
| 186 | return fid_range |
| 187 | else: |
| 188 | raise TypeError |
| 189 | else: |
| 190 | return None |
| 191 | |
| 192 | def check_layer(self): |
| 193 | """ |