QuantumWise Forum
June 20, 2013, 12:46 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: naming of objid  (Read 574 times)
0 Members and 1 Guest are viewing this topic.
esp
Supreme ATK Wizard
*****

Reputation: 3
Offline Offline

United States United States

Posts: 318



View Profile WWW
« 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
Logged

--------------------------
E.Pataky    [Shocked>-<
Anders Blom
QuantumWise Staff
Supreme ATK Wizard
*****

Reputation: 37
Offline Offline

Denmark Denmark

Posts: 2864



View Profile WWW
« Reply #1 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 Wink
Logged
esp
Supreme ATK Wizard
*****

Reputation: 3
Offline Offline

United States United States

Posts: 318



View Profile WWW
« Reply #2 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?

Smiley
Logged

--------------------------
E.Pataky    [Shocked>-<
Anders Blom
QuantumWise Staff
Supreme ATK Wizard
*****

Reputation: 37
Offline Offline

Denmark Denmark

Posts: 2864



View Profile WWW
« Reply #3 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 Shocked
Logged
esp
Supreme ATK Wizard
*****

Reputation: 3
Offline Offline

United States United States

Posts: 318



View Profile WWW
« Reply #4 on: February 15, 2012, 09:48 »

haha sure
Logged

--------------------------
E.Pataky    [Shocked>-<
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2008, Simple Machines Valid XHTML 1.0! Valid CSS!