Thank you Ramit. I updated my code since I am running 2.7.1+ on Ubuntu.
Best wishes,
Mina
On 11-10-25 08:02 AM, Prasad, Ramit wrote:
f = open(args.fname, 'r')
lines = f.readlines()
f.close()
If you are using Python 2.6+ you can use a context manager to automatically
close the file. That
at 11:12 AM, Mina Nozar noz...@triumf.ca
mailto:noz...@triumf.ca wrote:
Now, I would like to parse through this code and fill out 3 lists: 1)
activity_time, 2) activity, 3) error, and plot
the activities as a function of time using matplotlip. My question
specifically is on how to parse
Hello Wayne,
Thank you for your help and sorry for the delay in the response. I was caught up with other simulation jobs and didn't
get around to testing what you suggested until yesterday.
On 11-10-05 01:24 PM, Wayne Werner wrote:
On Wed, Oct 5, 2011 at 1:12 PM, Mina Nozar noz...@triumf.ca
Hi everyone,
I am post processing data from the output of simulation of activities for various radionuclide produced in a reaction at
different times.
I have already combined the information from 13 files (containing calculated activities and errors for 13 different
times). The format of
Thank you Parsad.
I am using Python 2.7.1+
You are right, looks like optparse is replaced by argparse.
My problem was that I was checking output and not options.output.
cheers,
Mina
On 11-09-20 02:27 PM, Prasad, Ramit wrote:
from optparse import OptionParser
I am not sure what version of
Hello,
I am trying to use OptionParser (my first time) to set a variable (cvs_output). i.e. if --csv is given in the list of
options, then cvs_output = True.
Then I check,
if cvs_output == True:
[...]
I have the following so far but something is missing.
from optparse import OptionParser