|
|
|
|
Should I Use ChIPS in Python or S-Lang?ChIPS can be run in two different languages: S-Lang and Python. There is no difference in the results obtained from either version, just a few syntax differences in the commands used. Compare these two commands: # Python set_curve(["line.color","olive", "symbol.size", 2]) % S-Lang set_curve({"line.color","olive", "symbol.size", 2}); All ChIPS S-Lang commands end in a semicolon (;) and Python commands do not. Python uses square brackets ([]) and S-Lang uses curly ones ({}). Python comments are denoted by the pound sign (#), while S-Lang comments use percent (%). The syntax is otherwise identical. (There are other differences between the S-Lang and Python languages; this list is limited to ChIPS syntax.) Some users will have a clear reason to choose Python over S-Lang, or vice-versa:
Otherwise, you can try both versions and determine which you prefer using. The Starting ChIPS thread explains how to run ChIPS with either language. |
![]() |
The Chandra X-Ray
Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA. Email: cxcweb@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2004. All rights reserved. |