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

Method get_entry_text_preview

pyxrf/core/quant_analysis.py:1360–1384  ·  view source on GitHub ↗

r""" Returns text (YAML) preview of the dictionary with QA calibration data entry. Only original data (loaded from file) is printed. Parameters ---------- file_path: str The string used to identify QA calibration data entry. See the docstring fo

(self, file_path)

Source from the content-addressed store, hash-verified

1358 return n_item
1359
1360 def get_entry_text_preview(self, file_path):
1361 r"""
1362 Returns text (YAML) preview of the dictionary with QA calibration data entry.
1363 Only original data (loaded from file) is printed.
1364
1365 Parameters
1366 ----------
1367
1368 file_path: str
1369
1370 The string used to identify QA calibration data entry. See the docstring for
1371 ``add_entry`` for more detailed comments.
1372
1373 Returns
1374 -------
1375
1376 String wich contains text (YAML) representation of QA calibration data entry.
1377 Empty string if the entry is not found.
1378 """
1379 n_item = self.find_entry_index(file_path)
1380 if n_item is not None:
1381 s = yaml.dump(self.calibration_data[n_item], default_flow_style=False, sort_keys=False, indent=4)
1382 else:
1383 s = ""
1384 return s
1385
1386 def select_eline(self, eline, file_path):
1387 r"""

Calls 1

find_entry_indexMethod · 0.95

Tested by 1