Posted by: Jamie | March 8, 2010

Wikis Win

In my last post, I discussed a major issue I was having with the ATLAS TWiki in terms of clarity for someone unfamiliar with the computer side of the research.

Today I was again trying to work through the instructions on the site and ran into a problem. The instructions told me to make a script and make it executable. That instruction was followed by some code that I recognized as being the commands for running the analysis program – obviously not the commands to make a script! So I was stumped. How does one make a script, and what does the analysis program have to do with it? Fortunately, one of our computer-y types was in the lab, and I asked for his help.

Since the TWiki is, in fact, a wiki, I decided to register to be able to edit it. Anyone with a CERN login is able to sign up. I changed the instructions to be clear enough that pre-help Jamie could have followed the directions.

Before:

First prepare a small job script, suh as myjob, and make it executable (chmod +x myjob):

#!/bin/bash
source ~/cmthome/setup.sh -tag=15.3.0
cd ~/testarea/15.3.0/PhysicsAnalysis/AnalysisCommon/UserAnalysis/run
athena.py HelloWorldOptions.py

Now you can submit it to the batch system via:

> bsub -q 1nh myjob

After:

First prepare a small job script, such as myjob, by creating a text document which contains the following:

#!/bin/bash
source ~/cmthome/setup.sh -tag=15.3.0
cd ~/testarea/15.3.0/PhysicsAnalysis/AnalysisCommon/UserAnalysis/run
athena.py HelloWorldOptions.py

Make it executable:

> chmod +x myjob

Now you can submit it to the batch system via:

> bsub -q 1nh myjob

Make sure you run the bsub command in the same directory as your script.

Maybe this is a trivial change, and would seem like a condescending level of explanation to someone with more computer experience. But had the instructions read like this initially, I would not have needed to interrupt someone else’s work to continue with my own. So. Wikis win! =P

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories