Author Topic: naming of objid  (Read 4012 times)

0 Members and 1 Guest are viewing this topic.

Offline esp

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 318
  • Country: us
  • Reputation: 3
    • View Profile
    • University of Minnesota
naming of objid
« 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

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5394
  • Country: dk
  • Reputation: 89
    • View Profile
    • QuantumATK at Synopsys
Re: naming of objid
« 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 ;)

Offline esp

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 318
  • Country: us
  • Reputation: 3
    • View Profile
    • University of Minnesota
Re: naming of objid
« 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?

:)

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5394
  • Country: dk
  • Reputation: 89
    • View Profile
    • QuantumATK at Synopsys
Re: naming of objid
« 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 :o

Offline esp

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 318
  • Country: us
  • Reputation: 3
    • View Profile
    • University of Minnesota
Re: naming of objid
« Reply #4 on: February 15, 2012, 09:48 »
haha sure