QuantumATK Forum

General => Future Releases => Topic started by: esp on February 15, 2012, 04:37

Title: naming of objid
Post by: esp on February 15, 2012, 04:37
please allow underscore in object ids .. i keep adding them and then another script which reads them keeps failing ... i keep forgetting ... if you dont like underscores, how about internally replace underscore with some character or code, and then whenever inputs underscore you just convert, etc ... i like to use underscores, i feel so neglected
Title: Re: naming of objid
Post by: Anders Blom on February 15, 2012, 08:51
We can't use underscores in the actual file for technical reasons, but at least in version 11.8 (but not earlier) it will silently be replaced by a space, instead of failing in the script in nlsave. Where do you see it fail? If it's on nlread, just use spaces instead. After all, underscores are the poor OS's spaces ;)
Title: Re: naming of objid
Post by: esp on February 15, 2012, 09:09
No I am sorry, it does not fail, my code fails because i save in one place and open in another .. since the underscore is automatically replaced (and i keep forgetting that), it cannot open the file .. i realized this because i see that the name is saves is not what i specified, but i keep forgetting .. i am just saying why not allow it so we dont have to abandon long-standing underscore habits?

:)
Title: Re: naming of objid
Post by: Anders Blom on February 15, 2012, 09:40
We really can't have underscores inside object IDs because that symbol is reserved in NetCDF. So we've done as best we can by "allowing" it but replacing it - at least this means the script doesn't fail after 26 hours of calculation on nlsave, which would be a disaster :o
Title: Re: naming of objid
Post by: esp on February 15, 2012, 09:48
haha sure