@@ -145,9 +145,9 @@ def __init__(self, symbol: SpeciesLike) -> None:
145
145
146
146
self ._is_named_isotope = data .get ("Is named isotope" , False )
147
147
if self ._is_named_isotope :
148
- for sym , info in _PT_DATA .items ():
148
+ for symbol , info in _PT_DATA .items ():
149
149
if info ["Atomic no" ] == self .Z and not info .get ("Is named isotope" , False ):
150
- self .symbol = sym
150
+ self .symbol = symbol
151
151
break
152
152
# For specified/named isotopes, treat the same as named element
153
153
# (the most common isotope). Then we pad the data block with the
@@ -611,10 +611,10 @@ def from_Z(Z: int, A: int | None = None) -> Element:
611
611
Returns:
612
612
Element with atomic number Z.
613
613
"""
614
- for sym , data in _PT_DATA .items ():
614
+ for symbol , data in _PT_DATA .items ():
615
615
atomic_mass_num = data .get ("Atomic mass no" ) if A else None
616
616
if data ["Atomic no" ] == Z and atomic_mass_num == A :
617
- return Element (sym )
617
+ return Element (symbol )
618
618
619
619
raise ValueError (f"Unexpected atomic number { Z = } " )
620
620
@@ -659,8 +659,8 @@ def from_row_and_group(row: int, group: int) -> Element:
659
659
Note:
660
660
The 18 group number system is used, i.e. noble gases are group 18.
661
661
"""
662
- for sym in _PT_DATA :
663
- el = Element (sym )
662
+ for symbol in _PT_DATA :
663
+ el = Element (symbol )
664
664
if 57 <= el .Z <= 71 :
665
665
el_pseudo_row = 8
666
666
el_pseudo_group = (el .Z - 54 ) % 32
0 commit comments