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,
Joha
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 wrote:
> On Fri, Aug 19, 2011 at 6:00 AM, Johan Ekh wrote:
> > Hi all,
> > I have a sc
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.
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 wrote:
> On 2009-01-26 17:44, Johan Ekh wrote:
>
>> Hi all,
>> I'm trying to use optparse to process command line parameters given t
x27;-m', '--mass_vector', action='store', type='float',
dest='m_i', default=[1.0, 1.0], help='vector with lumped masses')
op, args = 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
in my case?
Best regards,
Johan
On Tue, Jan 27, 2009 at 7:12 AM, Robert Kern 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
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 opensuse