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

Function _add_element_to_list

pyxrf/model/parameters.py:1465–1471  ·  view source on GitHub ↗

Add element to list in the parameter class object

(eline, param)

Source from the content-addressed store, hash-verified

1463
1464
1465def _add_element_to_list(eline, param):
1466 """Add element to list in the parameter class object"""
1467 elist = get_element_list(param)
1468 elist_lower = [_.lower() for _ in elist]
1469 if eline.lower() not in elist_lower:
1470 elist.append(eline)
1471 _set_element_list(elist, param)
1472
1473
1474def _remove_element_from_list(eline, param):

Callers 2

_manual_inputMethod · 0.85

Calls 2

get_element_listFunction · 0.85
_set_element_listFunction · 0.85

Tested by

no test coverage detected