wiki:StyleGuide

Style Guide

Testing

ANUGA has a comprehensive test suite to ensure code quality. Please write tests for any new features, and write regression tests for bugs fixes.

All 900+ tests in test_all.py should complete in minutes. The system test suite validate_all.py has one test that takes just under an hour (Rigby flow test) and one that takes about 40 hours (Patong Beach). Okushiri should run in under ten minutes. This suite is normally run in the background to make sure the actual model physics remains sane.

Style

Python code should use the PEP8 style guidelines.

Last modified 15 years ago Last modified on Mar 26, 2010, 8:37:14 PM