Re: [Numpy-discussion] Avoiding messy code in Python

2013-06-12 Thread Daπid
On 12 June 2013 18:27, Chris Barker - NOAA Federal wrote: >> without documentation and testing. > > This one is easy: add documentation and testing! This lecture may help you. It uses unittest, though, but the idea is applicable to whatever system you use: https://python.g-node.org/python-summer

Re: [Numpy-discussion] Avoiding messy code in Python

2013-06-12 Thread Chris Barker - NOAA Federal
> I have some code more or less 500 lines, but very messy code. All codes > containing several functions are in one module, besides, without > documentation and testing. > > Could anyone give me some advice to organize my messy code in an accurate > style including test function as well? This is a

[Numpy-discussion] Avoiding messy code in Python

2013-06-12 Thread Bakhtiyor Zokhidov
Hi, I have some code more or less 500 lines, but very messy code. All codes containing several functions are in one module, besides, without documentation and testing. Could anyone give me some advice to organize my messy code in an accurate style including test function as well? Any answers