[FLASH-USERS] bad syntax in reading species

Seyit Hocuk seyit at astro.rug.nl
Fri Jun 1 11:05:21 EDT 2012


Hi,

I want to include species with names that have '+' or '-' in them. The 
config file cannot recognize these characters. It gives this error:

"
Bad syntax:
SPECIES e-
input doesn't match regular expression 
"SPECIES\s+(?P<name>\w+)(\s+TO\s+(?P<nElec>\d+))?\s*$"
"

Can I change the file "\bin\unitCfg.py" to make it able to read these?

     def initparseSPECIES(self):
         return {}, r'SPECIES\s+(?P<name>\w+)(\s+TO\s+(?P<nElec>\d+))?\s*$


Thanks,
Seyit




More information about the flash-users mailing list