Element Naming Restrictions

Moderators: cyao, michael_borland

Post Reply
mjoyce
Posts: 15
Joined: 28 Jul 2008, 12:56

Element Naming Restrictions

Post by mjoyce » 28 Jul 2008, 12:59

Are there any restrictions (unallowed characters) when naming the elements in the lattice?

michael_borland
Posts: 1933
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: Element Naming Restrictions

Post by michael_borland » 28 Jul 2008, 14:13

Michele,

The rules for naming elements and beamlines are as follows:
* The name should start with an alphabetic character (i.e., a-zA-Z).
* The name may contain any of the following characters: a-z A-Z ~ @ $ % ^ & - _ + = { } [ ] \ | / ? < > . :
* The name should no contain any of the following characters: # * ! " ' `
* The name cannot contain spaces.

When using unusual characters, it is a good idea to put the name in double quotes. This is necessary if ":" is used in a name. Using double-quotes also preserves the case of the name. By default, names are cast to upper case.

--Michael

michael_borland
Posts: 1933
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: Element Naming Restrictions

Post by michael_borland » 28 Jul 2008, 14:15

I forgot to say, you can also have digits 0-9 in the name.

--Michael

Post Reply