[FLASH-USERS] bad syntax in reading species

Anthony Scopatz scopatz at flash.uchicago.edu
Fri Jun 1 11:10:56 EDT 2012


Hello Seyit

"+" and "-" are not normal programming word characters.  These are defined
as any upper or lowercase latin letter, underscores, and digits (0-9).  I
might use "p" and "m" instead.

Be Well
Anthony

On Fri, Jun 1, 2012 at 4:05 PM, Seyit Hocuk <seyit at astro.rug.nl> wrote:

> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20120601/b5e2b92a/attachment.htm>


More information about the flash-users mailing list