cherab / solps

Other
6 stars 5 forks source link

MDSplus read fails for simulations containing Boron #24

Closed jacklovell closed 4 years ago

jacklovell commented 4 years ago

For example, ref number 141893 is an AUG simulation with Boron:

KeyError                                  Traceback (most recent call last)
~/Cherab/cherab_solps/demos/mastu_solps_from_mdsplus.py in <module>
     33 
     34 sim = load_solps_from_mdsplus(mds_server, ref_number)
---> 35 plasma = sim.create_plasma()
     36 mesh = sim.mesh
     37 vessel = mesh.vessel

~/Cherab/cherab_solps/cherab/solps/solps_plasma.py in create_plasma(self, parent, transform, name)
    485             symbol, charge = re.match(_SPECIES_REGEX, sp).groups()
    486             charge = int(charge)
--> 487             species_type = _species_symbol_map[symbol]
    488 
    489             # If neutral and B" atomic density available,  use B2 density, otherwise use fluid species density.

KeyError: 'B'