Forum: Forums topas RSS
Define strings in TOPAS
Hanna #1
Member since Jan 2019 · 11 posts
Group memberships: Members
Show profile · Link to this post
Subject: Define strings in TOPAS
Hi everyone,

Is it possible to define strings in TOPAS, such that I can define the filename at the top of the input file and call that string when I output xdd_out and phase_out? Basically, in python notation it would look like

filename='nameofmyfile'
xdd filename+'.dat'   
...
xdd_out filename+'_phases.txt'
...
phase_out filename+'_hkl.txt'
...

Thanks,
Hanna
johnsoevans (Administrator) #2
User title: John Evans
Member since Aug 2009 · 246 posts
Group memberships: Administrators, Members
Show profile · Link to this post
Dear Hanna,

have you looked at:

http://topas.dur.ac.uk/topaswiki/doku.…?id=string_equati…
http://topas.dur.ac.uk/topaswiki/doku.…?id=concatenate_s…

John
Hanna #3
Member since Jan 2019 · 11 posts
Group memberships: Members
Show profile · Link to this post
Dear John,

Thanks a lot, I got it to work! This will  save me both time and confusion in the long run.

Best wishes,
Hanna
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Not logged in. · Lost password · Register
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-11-29, 14:07:27 (UTC +00:00)