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

Method is_element_in_list

pyxrf/model/parameters.py:142–149  ·  view source on GitHub ↗

Check if element 'k' is in the list of selected elements

(self, element_line_name)

Source from the content-addressed store, hash-verified

140 self.element_dict.clear()
141
142 def is_element_in_list(self, element_line_name):
143 """
144 Check if element 'k' is in the list of selected elements
145 """
146 if element_line_name in self.element_dict.keys():
147 return True
148 else:
149 return False
150
151 def get_element_list(self):
152 current_elements = [v for v in self.element_dict.keys() if (v.lower() != v)]

Callers 1

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected