Re: [Tutor] Accessing a DLL from python

2011-03-01 Thread Stefan Behnel
Hanlie Pretorius, 01.03.2011 13:33: Can anyone perhaps suggest the easiest way of translating the C code into Python, bearing in mind that I'm rather a beginner? A beginner of what? Python? Programming in general? The C code you posted doesn't look too complex, so you could try to translate i

Re: [Tutor] Accessing a DLL from python

2011-03-01 Thread Hanlie Pretorius
Can anyone perhaps suggest the easiest way of translating the C code into Python, bearing in mind that I'm rather a beginner? Thanks Hanlie 2011/3/1, Hanlie Pretorius : > I see that I have misread the manual and that I need to reproduce the > code in the C example in python. The SWMM DLL doesn't

Re: [Tutor] Accessing a DLL from python

2011-03-01 Thread Hanlie Pretorius
I see that I have misread the manual and that I need to reproduce the code in the C example in python. The SWMM DLL doesn't contain ready-made functions to open files etc. Apologies for posting before I was completely sure of the problem. Hanlie 2011/3/1, Hanlie Pretorius : > Hi Python Tutors, >

[Tutor] Accessing a DLL from python

2011-03-01 Thread Hanlie Pretorius
Hi Python Tutors, I'm using a storm water modelling program, EPA SWMM, to model the hydrology and hydraulics of a study area. SWMM reports its results in a binary (.out) file that contains the results for each element in the model at each time step in the model run. According to the SWMM interfac