Thanks Chris!
I tried using ! instead of run. It works but with a significant
performance penalty.
Best regards,
Johan
On Fri, Aug 19, 2011 at 5:11 PM, Chris Rebert c...@rebertia.com wrote:
On Fri, Aug 19, 2011 at 6:00 AM, Johan Ekh ekh.jo...@gmail.com wrote:
Hi all,
I have a script
Hi all,
I have a script myscript.py located in /usr/local/bin on my linux box.
I can execute it in ipython with
run /usr/local/bin/myscript.py
but not with
run myscript.py
even though /usr/local/bin is in my $PATH and in my $PYTHONPATH.
What should I do to correct this?
Best regards,
Johan
Hi all,
I use the finite element package ABAQUS that is partly built around python
2.4.3.
ABAQUS ships with its own version of python 2.4.3 but it comes without third
party
libraries, e.g. numpy and scipy. In order to load these modules into ABAQUS
python
I must install python 2.4.3. on my
, 2009 at 7:12 AM, Robert Kern robert.k...@gmail.com wrote:
On 2009-01-27 00:01, Johan Ekh wrote:
Thank you James,
but I just can't optparse to accept an array, only integers, floats ans
strings.
My code looks like this
from optparse import OptionParser
parser = OptionParser
Hi all,
I'm trying to use optparse to process command line parameters given to my
program.
It works as I expect for the types supported by optparse, i.e. int, float,
string etc. but how can I
pass a numpy.array or a list to my program?
I have been searching for it but cannot find a good solution.
that
route just to pass an array?
Lot's of people must have done this before!
Best regards,
Johan
On Tue, Jan 27, 2009 at 1:00 AM, Robert Kern robert.k...@gmail.com wrote:
On 2009-01-26 17:44, Johan Ekh wrote:
Hi all,
I'm trying to use optparse to process command line parameters given to
my program
= parser.parse_args(sys.argv[1:])
I want this to work for m_i = array([1.0, 2.0, 3.0]) but the optparse
complains that m_i is not a float.
Best regards,
Johan
On Tue, Jan 27, 2009 at 6:53 AM, James Mills
prolo...@shortcircuit.net.auwrote:
On Tue, Jan 27, 2009 at 3:45 PM, Johan Ekh ekh.jo