Re: Calling Fortran from Python

2007-04-04 Thread Mangabasi
On Apr 4, 5:48 pm, Robert Kern [EMAIL PROTECTED] wrote: Mangabasi wrote: Would Python 2.5 work with Visual Studio 6.6? No. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though

Re: Calling Fortran from Python

2007-04-04 Thread Lenard Lindstrom
to Fortran subroutines is strictly pass-by-reference. Thus the ain pointer. Lenard Lindstrom -- http://mail.python.org/mailman/listinfo/python-list

Calling Fortran from Python

2007-04-03 Thread Mangabasi
Howdy, I have been trying to call the following Fortran function from Python (using Windows XP, Compaq Fortran and Python 2.4). I tried F2Py, Pyfort and calldll with no success. I think I came very close with calldll. Here is a short summary Fortran code: SUBROUTINE SAMPLE(IERR1,IERR2

Re: Calling Fortran from Python

2007-04-03 Thread Robert Kern
running config_fc running build_src building extension sample sources creating /tmp/tmpZL8qAw creating /tmp/tmpZL8qAw/src.macosx-10.3-fat-2.5 f2py options: [] f2py: sample.pyf Reading fortran codes... Reading file 'sample.pyf' (format:free) Post-processing... Block: sample

Re: Fortran vs Python - Newbie Question

2007-03-28 Thread Tim Roberts
Steven D'Aprano [EMAIL PROTECTED] wrote: On Mon, 26 Mar 2007 06:40:49 -0700, kyosohma wrote: Fortran also appears to be a compiled language, whereas Python is an interpreted language. Sheesh. Do Java developers go around telling everybody that Java is an interpreted language? I don't think so

Re: Fortran vs Python - Newbie Question

2007-03-28 Thread Alex Gibson
at no charge. The Python world is different from what experience with Fortran might lead you to expect. Your experience with Fortran is dated -- see below. I'll be more clear: Fortran itself is a distinguished language with many meritorious implementations. It can be costly, though, finding

Re: Fortran vs Python - Newbie Question

2007-03-28 Thread Michael Tobis
I feel obligated to fan the flames a bit by pointing to http://www.fortranstatement.com/ a site which advocates discontinuing development of Fortran and does a good job of summarizing the problems with the contemporary development of that language. I am not convinced that a new high performance

Re: Fortran vs Python - Newbie Question

2007-03-28 Thread Terry Reedy
Tim Roberts [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | Well, I'm being a bit argumentative here, but it's hard to deny that the | use of compiled in the context of .pyc (or .javac) is very different from | the use of compiled in the context of running gcc. Besides the fact

Re: Fortran vs Python - Newbie Question

2007-03-28 Thread Mel Wilson
Terry Reedy wrote: Tim Roberts [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | Once upon a time, | Basic enthusiasts would have used the word tokenized to describe .pyc files. Perhaps, but they would, I think, have been wrong. Tokenized Basic to the best of my knowledge,

Re: Fortran vs Python - Newbie Question

2007-03-27 Thread Cameron Laird
In article [EMAIL PROTECTED], Beliavsky [EMAIL PROTECTED] wrote: . . . Your experience with Fortran is dated -- see below. I'll be more clear: Fortran itself is a distinguished language with many meritorious

Re: Fortran vs Python - Newbie Question

2007-03-27 Thread Mark Morss
On Mar 26, 12:59 pm, Erik Johnson [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] OK... I've been told that Both Fortran and Python are easy to read, and are quite useful in creating scientific apps for the number crunching, but then Python is a tad

Re: Fortran vs Python - Newbie Question

2007-03-27 Thread Jaap Spies
Mark Morss wrote: Maybe somebody reading this will be able to convince me to look again at Numpy/Scipy, but for the time being I will continue to do my serious numerical computation in Fortran. What I am missing in this discussion is a link to Pyrex to speed up Python: Pyrex is almost

Re: Fortran vs Python - Newbie Question

2007-03-27 Thread Mark Morss
On Mar 27, 12:55 pm, Jaap Spies [EMAIL PROTECTED] wrote: Mark Morss wrote: Maybe somebody reading this will be able to convince me to look again at Numpy/Scipy, but for the time being I will continue to do my serious numerical computation in Fortran. What I am missing in this discussion

Re: Fortran vs Python - Newbie Question

2007-03-27 Thread Erik Johnson
Steven D'Aprano [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sheesh. Do Java developers go around telling everybody that Java is an interpreted language? I don't think so. What do you think the c in .pyc files stands for? Cheese? On the contrary... Sun is very careful to make

Re: Fortran vs Python - Newbie Question

2007-03-27 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Mark Morss wrote: Well, the discussion was about Python vs. Fortran, and Pyrex, as I understand it, is a tool for linking C to Python. I think it's more than that. It's more a subset of Python with a little static typing. Ciao, Marc 'BlackJack' Rintsch -- http

Re: Fortran vs Python - Newbie Question

2007-03-27 Thread Beliavsky
On Mar 27, 6:32 am, [EMAIL PROTECTED] (Cameron Laird) wrote: In article [EMAIL PROTECTED],Beliavsky [EMAIL PROTECTED] wrote: . . . Your experience with Fortran is dated -- see below. I'll be more clear: Fortran

Re: Fortran vs Python - Newbie Question

2007-03-27 Thread Steven D'Aprano
On Tue, 27 Mar 2007 12:11:01 -0600, Erik Johnson wrote: But seriously... I'm not a language or architecture guru. Is there any real difference between a JVM and an interpreter? I mean, I have some general feel that bytecode is a lower-level, more direct and more efficient thing to be

Fortran vs Python - Newbie Question

2007-03-26 Thread [EMAIL PROTECTED]
OK... I've been told that Both Fortran and Python are easy to read, and are quite useful in creating scientific apps for the number crunching, but then Python is a tad slower than Fortran because of its a high level language nature, so what are the advantages of using Python for creating number

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Jean-Paul Calderone
On 26 Mar 2007 06:20:32 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: OK... I've been told that Both Fortran and Python are easy to read, and are Python is hugely easier to read. quite useful in creating scientific apps for the number crunching, but then Python is a tad slower than Fortran

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread kyosohma
On Mar 26, 8:20 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: OK... I've been told that Both Fortran and Python are easy to read, and are quite useful in creating scientific apps for the number crunching, but then Python is a tad slower than Fortran because of its a high level language

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Michele Simionato
On Mar 26, 9:20 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: OK... I've been told that Both Fortran and Python are easy to read, and are quite useful in creating scientific apps for the number crunching, but then Python is a tad slower than Fortran because of its a high level language

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Bart Ogryczak
On Mar 26, 3:20 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: OK... I've been told that Both Fortran and Python are easy to read, and are quite useful in creating scientific apps for the number crunching, but then Python is a tad slower than Fortran because of its a high level language

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread [EMAIL PROTECTED]
On Mar 26, 2:42 pm, Jean-Paul Calderone [EMAIL PROTECTED] wrote: On 26 Mar 2007 06:20:32 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: OK... I've been told that Both Fortran and Python are easy to read, and are Python is hugely easier to read. quite useful in creating scientific apps

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Jean-Paul Calderone
On 26 Mar 2007 06:47:18 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Mar 26, 2:42 pm, Jean-Paul Calderone [EMAIL PROTECTED] wrote: On 26 Mar 2007 06:20:32 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: OK... I've been told that Both Fortran and Python are easy to read

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread stef
You can get the speed of fortran in Python by using libraries like Numeric without losing the readability of Python. Can you back this up with some source?? Chris Is this really the most important issue in your choice ? As said by others, Portability, scalability RAD

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Andy Dingley
On 26 Mar, 14:20, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: what are the advantages of using Python for creating number crunching apps over Fortran?? If you have to ask, you've not experienced enough Fortran to know its sheer horror. You can write programs in Python that do usefully

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread [EMAIL PROTECTED]
On 26 Mar, 15:06, stef [EMAIL PROTECTED] wrote: You can get the speed of fortran in Python by using libraries like Numeric without losing the readability of Python. Can you back this up with some source?? Chris Is this really the most important issue in your choice ? As said by others

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread irstas
On Mar 26, 4:47 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: You can get the speed of fortran in Python by using libraries like Numeric without losing the readability of Python. Can you back this up with some source?? Chris If you execute one command in Python which tells a super

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Alex Martelli
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ... So I'ld suggest to start with downloading the Enthought edition of Python, and you can judge for yourself within 10 minutes, if it's fast enough. cheers, Stef Mientki Is there a mac version??

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Cameron Laird
In article [EMAIL PROTECTED], Jean-Paul Calderone [EMAIL PROTECTED] wrote: On 26 Mar 2007 06:20:32 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: OK... I've been told that Both Fortran and Python are easy to read, and are Python is hugely easier to read. quite useful in creating scientific

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Ramon Diaz-Uriarte
On 26 Mar 2007 06:20:32 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: OK... I've been told that Both Fortran and Python are easy to read, and are quite useful in creating scientific apps for the number crunching, but then Python is a tad slower than Fortran because of its a high level

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Carl Banks
On Mar 26, 10:11 am, Andy Dingley [EMAIL PROTECTED] wrote: On 26 Mar, 14:20, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: what are the advantages of using Python for creating number crunching apps over Fortran?? If you have to ask, you've not experienced enough Fortran to know its sheer

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread sturlamolden
On Mar 26, 3:20 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've been told that Both Fortran and Python are easy to read, and are quite useful in creating scientific apps for the number crunching, but then Python is a tad slower than Fortran because of its a high level language nature, so

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : On Mar 26, 8:20 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: OK... I've been told that Both Fortran and Python are easy to read, and are quite useful in creating scientific apps for the number crunching, but then Python is a tad slower than Fortran because of its

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Cameron Laird
In article [EMAIL PROTECTED], [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: . . . You can get the speed of fortran in Python by using libraries like Numeric without losing the readability of Python. Can you back this up

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Cameron Laird
with Fortran might lead you to expect. I'll be more clear: Fortran itself is a distinguished language with many meritorious implementations. It can be costly, though, finding the implementation you want/need for any specific environment. Python, in contrast, is blessed with a plethora

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Cameron Laird
In article [EMAIL PROTECTED], Alex Martelli [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ... So I'ld suggest to start with downloading the Enthought edition of Python, and you can judge for yourself within 10 minutes, if it's fast enough. cheers, Stef Mientki

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Robert Kern
Alex Martelli wrote: [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ... So I'ld suggest to start with downloading the Enthought edition of Python, and you can judge for yourself within 10 minutes, if it's fast enough. cheers, Stef Mientki Is there a mac version??

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Carl Banks
On Mar 26, 9:42 am, Jean-Paul Calderone [EMAIL PROTECTED] wrote: On 26 Mar 2007 06:20:32 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: OK... I've been told that Both Fortran and Python are easy to read, and are Python is hugely easier to read. quite useful in creating scientific apps

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Erik Johnson
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] OK... I've been told that Both Fortran and Python are easy to read, and are quite useful in creating scientific apps for the number crunching, but then Python is a tad slower than Fortran because of its a high level language nature

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread [EMAIL PROTECTED]
On 26 Mar, 17:59, Erik Johnson [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] OK... I've been told that Both Fortran and Python are easy to read, and are quite useful in creating scientific apps for the number crunching, but then Python is a tad

RE: Fortran vs Python - Newbie Question

2007-03-26 Thread Sells, Fred
To: python-list@python.org Subject: Fortran vs Python - Newbie Question OK... I've been told that Both Fortran and Python are easy to read, and are quite useful in creating scientific apps for the number crunching, but then Python is a tad slower than Fortran because of its a high level language

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Steven D'Aprano
On Mon, 26 Mar 2007 06:40:49 -0700, kyosohma wrote: Fortran also appears to be a compiled language, whereas Python is an interpreted language. Sheesh. Do Java developers go around telling everybody that Java is an interpreted language? I don't think so. What do you think the c in .pyc files

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Tal Einat
On Mar 26, 3:20 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: OK... I've been told that Both Fortran and Python are easy to read, and are quite useful in creating scientific apps for the number crunching, but then Python is a tad slower than Fortran because of its a high level language

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Beliavsky
On Mar 26, 8:40 am, [EMAIL PROTECTED] wrote: On Mar 26, 8:20 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: OK... I've been told that Both Fortran and Python are easy to read, and are quite useful in creating scientific apps for the number crunching, but then Python is a tad slower than

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread sturlamolden
of applications instead of focusing on numerical functions like fortran does. I wouldn't go as far as to say Python is a 'fast' language. But it's certainly fun (particularly that), powerful, readable, and useful, even for numerical computing. Speed in numerical computing is a strange beast. First, a small

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Beliavsky
On Mar 26, 8:42 am, Jean-Paul Calderone [EMAIL PROTECTED] wrote: snip You can get the speed of fortran in Python by using libraries like Numeric without losing the readability of Python. Numeric and Numpy will faster than raw Python for array operations, but I don't think they will match well

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Steven D'Aprano
On Mon, 26 Mar 2007 15:53:56 -0700, sturlamolden wrote: Python is a very high-level language. That means there are certain things that put constraint on the attained speed. Most importantly: keep the number of interpreter evals as scarce as possible. If you make a for loop, the interpreter

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Beliavsky
On Mar 26, 9:06 am, stef [EMAIL PROTECTED] wrote: As said by others, Portability, scalability RAD as an advantage of Python are probably far more important. All of those claimed advantages can be debated, although they may exist for some tasks. (1) Portability. Fortran has been run

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Beliavsky
On Mar 26, 10:31 am, Carl Banks [EMAIL PROTECTED] wrote: snip You can write programs in Python that do usefully complicated things, and you can get them to work in a reasonable time. Fortran can't do this, for anything more than the trivial. Classic Fortran tasks of the past are now seen

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Beliavsky
On Mar 26, 10:16 am, [EMAIL PROTECTED] (Cameron Laird) wrote: In article [EMAIL PROTECTED],[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is there a mac version?? Thanks Chris Yes. Several, in fact--all available at no charge. The Python world is different from what experience with Fortran

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Alex Martelli
Cameron Laird [EMAIL PROTECTED] wrote: ... If you're just trying to learn and check things out, it might be better to get a more recent Python from python.org (2.5 or 2.4.4) and the various other packages as and when you need them (you can use the MacEnthon list as a guide:-). You'll need

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Alex Martelli
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've been told that Both Fortran and Python are easy to read, and are quite useful in creating scientific apps for the number crunching, but Incidentally, and a bit outside what you asked: if your number crunching involves anything beyond linear

Re: Fortran vs Python - Newbie Question

2007-03-26 Thread Chris Smith
Carl Banks wrote: On Mar 26, 10:11 am, Andy Dingley [EMAIL PROTECTED] wrote: On 26 Mar, 14:20, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: what are the advantages of using Python for creating number crunching apps over Fortran?? If you have to ask, you've not experienced enough Fortran

Reading Fortran Data

2007-01-21 Thread Tyler
in Fortran written data. The data files are not binary, but ASCII text files with no formatting and mixed data types (strings, integers, floats). For example, I have the following write statements in my Fortran code: I write the files as such: WRITE(90,'(A30)') fgeo_name WRITE(90,'(A30

Re: Reading Fortran Data

2007-01-21 Thread [EMAIL PROTECTED]
getting acquainted with Python and, in particular SciPy, NumPy, and Matplotlib. While I await the delivery of Travis Oliphant's NumPy manual, I have a quick question (hopefully) regarding how to read in Fortran written data. The data files are not binary, but ASCII text files

Re: Reading Fortran Data

2007-01-21 Thread Robert Kern
[EMAIL PROTECTED] wrote: I don't know if this is helpfull or not but (or for that matter current). http://cens.ioc.ee/projects/f2py2e/ offers some suggestions and it looks like you can use it with c code also. f2py has been folded into numpy. -- Robert Kern I have come to believe that the

Re: Reading Fortran Data

2007-01-21 Thread Robert Kern
) regarding how to read in Fortran written data. The data files are not binary, but ASCII text files with no formatting and mixed data types (strings, integers, floats). For example, I have the following write statements in my Fortran code: Konrad Hinsen has a module for reading this kind of file

Re: Reading Fortran Data

2007-01-21 Thread Beliavsky
) regarding how to read in Fortran written data. The data files are not binary, but ASCII text files with no formatting and mixed data types (strings, integers, floats). For example, I have the following write statements in my Fortran code: In plain Python, you can read each line in to a string, break

Re: Reading Fortran Data

2007-01-21 Thread Carl Banks
) regarding how to read in Fortran written data. I think you made a good choice, if for no other reason than the fact that Python and numpy absolutely rock when it comes to interfacing with Fortran (and any C code that can be called by Fortran). I suggest having a look at pyfort and/or f2py to see

Re: Reading Fortran Data

2007-01-21 Thread Beliavsky
Carl Banks wrote: snip WRITE(90,*) nfault,npoint Fortran writes this as two arbitrary integers separated by a space. I wrote a paragraph in my reply explaining why this is wrong. A Fortran list-directed write can print results in an almost arbitrary format, depending on the compiler

Re: Reading Fortran Data

2007-01-21 Thread Carl Banks
Beliavsky wrote: Carl Banks wrote: snip WRITE(90,*) nfault,npoint Fortran writes this as two arbitrary integers separated by a space. I wrote a paragraph in my reply explaining why this is wrong. It's a safe assumption for a line of two integers. It might not exactly produce what

Re: Reading Fortran Data

2007-01-21 Thread Beliavsky
Carl Banks wrote: snip A Fortran list-directed write can print results in an almost arbitrary format, depending on the compiler. Many compilers will separate integers by several spaces, not just one, and they could use commas instead of spaces if they wanted. 1. Hardly any compiler

Re: Reading Fortran Data

2007-01-21 Thread Carl Banks
Beliavsky wrote: Carl Banks wrote: snip A Fortran list-directed write can print results in an almost arbitrary format, depending on the compiler. Many compilers will separate integers by several spaces, not just one, and they could use commas instead of spaces if they wanted

Re: Reading Fortran Data

2007-01-21 Thread Tyler
for your replies, I think I even learnt a few things about Fortran here too Cheers, t. -- http://mail.python.org/mailman/listinfo/python-list

accessing fortran modules from python

2006-11-16 Thread sam
hello all, i am currently in the process of planning a piece of software to model polymerisation kinetics, and intend to use python for all the high-level stuff. the number-crunching is something i would prefer to do in fortran (which i have never used, but will learn), but i have no experience

Re: accessing fortran modules from python

2006-11-16 Thread Beliavsky
sam wrote: hello all, i am currently in the process of planning a piece of software to model polymerisation kinetics, and intend to use python for all the high-level stuff. the number-crunching is something i would prefer to do in fortran (which i have never used, but will learn), but i

Re: accessing fortran modules from python

2006-11-16 Thread Robert Kern
sam wrote: hello all, i am currently in the process of planning a piece of software to model polymerisation kinetics, and intend to use python for all the high-level stuff. the number-crunching is something i would prefer to do in fortran (which i have never used, but will learn), but i

Re: accessing fortran modules from python

2006-11-16 Thread sam
thanks guys, i'll follow this up more in a couple of weeks when i know what i need to do better. sam -- http://mail.python.org/mailman/listinfo/python-list

Integrating Python with Fortran

2006-10-31 Thread unexpected
Hi all, I'm currently working on a large, legacy Fortran application. I would like to start new development in Python (as it is mainly I/O related). In order to do so, however, the whole project needs to be able to compile in Fortran. I'm aware of resources like the F2Py Interface generator

Re: Integrating Python with Fortran

2006-10-31 Thread Martin v. Löwis
unexpected schrieb: I'm aware of resources like the F2Py Interface generator, but this only lets me access the Fortran modules I need in Python. I'm wondering if there's a way to generate the .o files from Python (maybe using py2exe?) and then link the .o file with the rest of the Fortran

Re: Integrating Python with Fortran

2006-10-31 Thread MC
Hi! in afternoon: http://calcul.math.cnrs.fr/article.php3?id_article=150 -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Integrating Python with Fortran

2006-10-31 Thread Robert Kern
unexpected wrote: Hi all, I'm currently working on a large, legacy Fortran application. I would like to start new development in Python (as it is mainly I/O related). In order to do so, however, the whole project needs to be able to compile in Fortran. I'm aware of resources like

Fredericksburg, VA ZPUG July 12: Jim Fulton's buildout package, Python + Fortran, roundtable

2006-07-12 Thread Gary Poster
for assembling applications from multiple parts, Python or otherwise. See http://svn.zope.org/zc.buildout/trunk/. - John Kimball will present a lightning talk of Fortran in Python. - We will have a roundtable discussion of Python and Zope topics. Gary General

Fredericksburg, VA ZPUG July 12: Jim Fulton's buildout package, Python + Fortran, roundtable

2006-07-10 Thread Gary Poster
. The zc.buildout project provides support for creating applications, especially Python applications. It provides tools for assembling applications from multiple parts, Python or otherwise. See http://svn.zope.org/zc.buildout/trunk/. - John Kimball will present a lightning talk of Fortran

Re: FORTRAN like formatting

2005-07-09 Thread Cyril Bazin
Ok, dennis, your solution may be better, but is quite dangerous: Python can't handle if there is exactly 3 arguments passed to the function. The created code is correct but the error will appear when your run Fortran. Cyril On 7/9/05, Dennis Lee Bieber [EMAIL PROTECTED] wrote: On Fri, 8 Jul

Re: FORTRAN like formatting

2005-07-09 Thread beliavsky
Dennis Lee Bieber wrote: On 7/8/05, Einstein, Daniel R [EMAIL PROTECTED] wrote: Hi, Sorry for this, but I need to write ASCII from my Python to be read by FORTRAN and the formatting is very important. Is there any way of doing anything like: write(*,'(3( ,1pe20.12

FORTRAN like formatting

2005-07-08 Thread Einstein, Daniel R
Title: FORTRAN like formatting Hi, Sorry for this, but I need to write ASCII from my Python to be read by FORTRAN and the formatting is very important. Is there any way of doing anything like: write(*,'(3( ,1pe20.12))') (variable) In other words, I want three columns 20 spaces long

Re: FORTRAN like formatting

2005-07-08 Thread Cyril BAZIN
Hello, I don't anderstand very well Fortran syntax, but want you say something like that: def toTable(n1, n2, n3): return %20s%20s%20s%tuple([%.12f%x for x in [n1, n2, n3]]) Example: import math toTable(math.pi, 10, 8.2323) ' 3.141592653590 10. 8.2323

Symbol Referencing Error in Fortran 90

2005-04-04 Thread student
while compiling on: SunOS 5.8 Generic_108528-27 sun4u sparc SUNW,Sun-Fire-280R I get the following error: Undefined first referenced symbol in file matrixi_tst.o ld: fatal: Symbol referencing errors. No output

Re: Symbol Referencing Error in Fortran 90

2005-04-04 Thread beliavsky
This message was also posted and replied to on comp.lang.fortran -- I think it's presence here is an accident. -- http://mail.python.org/mailman/listinfo/python-list

Fortran pros and cons (was Re: Coding style article with interesting section on white space)

2005-01-30 Thread beliavsky
Michael Tobis wrote: Fortran programmers are generally happy with the portability of the language. Until they try to port something...? Honestly, I can't imagine where anyone would get this impression. From the fact that Fortran has been used on hundreds of platforms and that many

Re: Fortran pros and cons (was Re: Coding style article with interesting section on white space)

2005-01-30 Thread beliavsky
Michael Tobis wrote: [EMAIL PROTECTED] wrote: Michael Tobis wrote: Fortran 90/95 is more expressive than Fortran 77 in many ways, as described in ... http://www.nr.com/CiP97.pdf . ... expresses more science per line of code and per programming workday. The example shown on p 10

Reading Fortran binary files

2005-01-10 Thread drife
Hello, I need to read a Fortran binary data file in Python. The Fortran data file is organized thusly: nx,ny,nz,ilog_scale # Record 1 (Header) ihour,data3D_array# Record 2 Where every value above is a 2 byte Int. Further, the first record is a header containing the dimensions of the data

Re: Reading Fortran binary files

2005-01-10 Thread Michael Fuhr
drife [EMAIL PROTECTED] writes: I need to read a Fortran binary data file in Python. The Fortran data file is organized thusly: nx,ny,nz,ilog_scale # Record 1 (Header) ihour,data3D_array# Record 2 Where every value above is a 2 byte Int. Have you looked at the struct module? http

<    1   2   3   4