from_name
from_name(name)
Looks up an element in the JAFF mass dictionary by its full lowercase name and returns the corresponding Element flyweight.
Parameters
- name : str
- Full element name as stored in the mass dictionary (lowercase), e.g.
"hydrogen","carbon".
Returns
- Element
- The
Elementflyweight for the requested element.