MCPcopy Create free account
hub / github.com/NSLS2/PyXRF / find_entry_index

Method find_entry_index

pyxrf/core/quant_analysis.py:1339–1358  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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"""

Callers 5

remove_entryMethod · 0.95
select_elineMethod · 0.95
is_eline_selectedMethod · 0.95

Calls

no outgoing calls

Tested by 1