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

Method get_n_entries

pyxrf/core/quant_analysis.py:1324–1337  ·  view source on GitHub ↗

r""" Returns the number of QA calibration data entries. Returns ------- The number of available calibration entries. If not calibration data was loaded or added, then the returned value is 0.

(self)

Source from the content-addressed store, hash-verified

1322 return file_path_list
1323
1324 def get_n_entries(self):
1325 r"""
1326 Returns the number of QA calibration data entries.
1327
1328 Returns
1329 -------
1330
1331 The number of available calibration entries. If not calibration data was loaded or added,
1332 then the returned value is 0.
1333 """
1334 if not self.calibration_settings:
1335 return 0
1336 else:
1337 return len(self.calibration_settings)
1338
1339 def find_entry_index(self, file_path):
1340 r"""

Callers 1

Calls

no outgoing calls

Tested by 1