Principia Discordia

Principia Discordia => Techmology and Scientism => Topic started by: axod on January 01, 2015, 11:39:33 PM

Title: Numpy in my Pythonic Fortran
Post by: axod on January 01, 2015, 11:39:33 PM
I remember from my days of lurking, a thread on python's coding fury.
Now it seems that I am catching-up, though some dependencies stay blurry.
Namely, if nested in the python, fortran lays, is anyone here versed'n it's ways?

Perhaps someone from the navy, would know a little Fortran(90) maybe?
Title: Re: Numpy in my Pythonic Fortran
Post by: axod on January 04, 2015, 11:54:29 PM
Ftpy eventually did the trick.  Feels like cheating the fortran.  Works, tho back hurts from all the "hacking".  The whole venture is rather obsessive, strangely addictive and hypnotic.  Not to mention funny:  "not now, honey, I just have to finish compiling Mie scattering libraries before I'm done"
Title: Re: Numpy in my Pythonic Fortran
Post by: Mesozoic Mister Nigel on January 06, 2015, 12:50:51 AM
I'll numpy in your pythonic fortran, all right. Just hold still a minute.
Title: Re: Numpy in my Pythonic Fortran
Post by: Mesozoic Mister Nigel on January 06, 2015, 12:51:23 AM
Seriously though Hirley0 probably knows what you're talking about.
Title: Re: Numpy in my Pythonic Fortran
Post by: axod on January 08, 2015, 12:19:45 AM
Honestly, I would not be surprised if Hirle0 was responsible for getting me this far in the first place.
Title: Re: Numpy in my Pythonic Fortran
Post by: rong on January 08, 2015, 12:29:34 AM
I took a Fortran class in college. 

I learned the Fortran is not very good for combinatorial algorithms
Title: Re: Numpy in my Pythonic Fortran
Post by: axod on January 08, 2015, 04:35:04 AM
The f90 is for numerical propagation/scattering algs, I think.  Compiled them separate and they used to work.  Now I think scipy plots are getting too big-  need too lean out all modules imported, I think.  Or get more memory.  :lulz:
Title: Re: Numpy in my Pythonic Fortran
Post by: rong on January 08, 2015, 05:09:35 AM
I was using F77 - it worked but it was cumbersome
Title: Re: Numpy in my Pythonic Fortran
Post by: axod on January 09, 2015, 12:49:21 AM
Yea, I was using g77, gnu95, then gfortran - reading about the lang's development and was fascinated by the different demands made on it - like de fence dept.s stipulating the inclusion of Unicode parsers back in the 50's.  Fascinating.
Title: Re: Numpy in my Pythonic Fortran
Post by: axod on January 11, 2015, 08:27:15 PM
So, hacking away, turns out my fortran bits may not have been properly compiled.  Although I cannot simply build and package the modules into python, seamlessly, with a little repetition I can force the calculations to work with python's "in-line" command prompt.  This is cool because python is flexible enough to bend over backwards, however, without a propper compile, it can take me hours of hacking and jerry-rigging just to do a single calculation.  Is there anyway to take a snap-shot of a working environment in python, I wonder, kind of like saving one's progress?  Will post If it occurs.
Title: Re: Numpy in my Pythonic Fortran
Post by: axod on January 12, 2015, 09:01:21 PM
Aaand
(http://i.imgur.com/rlXIWTC.jpg)