r""" Find the index of calibration data entry with the given file path. Returns ``None`` if ``file_path`` is not found. Parameters ---------- file_path: str The string used to identify QA calibration data entry. See the docstring for
(self, file_path)
| 1337 | return len(self.calibration_settings) |
| 1338 | |
| 1339 | def find_entry_index(self, file_path): |
| 1340 | r""" |
| 1341 | Find the index of calibration data entry with the given file path. Returns ``None`` |
| 1342 | if ``file_path`` is not found. |
| 1343 | |
| 1344 | Parameters |
| 1345 | ---------- |
| 1346 | |
| 1347 | file_path: str |
| 1348 | |
| 1349 | The string used to identify QA calibration data entry. See the docstring for |
| 1350 | ``add_entry`` for more detailed comments. |
| 1351 | |
| 1352 | """ |
| 1353 | n_item = None |
| 1354 | for n, v in enumerate(self.calibration_settings): |
| 1355 | if v["file_path"] == file_path: |
| 1356 | n_item = n |
| 1357 | break |
| 1358 | return n_item |
| 1359 | |
| 1360 | def get_entry_text_preview(self, file_path): |
| 1361 | r""" |
no outgoing calls