ZeroDivisionError is asymptotic ratio

Traceback (most recent call last): File "/home/s0575124/programming/python/fifthwave/trunk/example.py", line 66, in ? test.report_convergence() File "/home/s0575124/programming/python/fifthwave/trunk/src/flightdeck.py", line 490, in report_convergence verify.report(grid_list, report_file, met_name=name) File "/home/s0575124/programming/python/fifthwave/trunk/src/verify.py", line 305, in report ratio = asymptotic_ratio(trip[0], trip[1], trip[2], p, fsafe) File "/home/s0575124/programming/python/fifthwave/trunk/src/verify.py", line 167, in asymptotic_ratio ratio = r**p * ( gci12[0] / gci23[0])

Details

Id: e2217a43e14a32c28e2629308cf1fbdfde72a0c3
Type: bugfix
Creation time: 2011-03-01 13:12
Creator: Mathew Topper <mathew.topper@...>
Release: 0.3 (unreleased)
Component: verify.py
Status: closed : fixed fixed

Issue log

2011-09-15 15:57 Mathew Topper <mathew.topper@...> closed with disposition fixed
Again I think this is caused by identical values between runs which gives zeros. This isn't really a fix, I've just covered it by a try. I'm sure there are better ways to deal with such things, especially on more than 3 grids, but I can't be arsed to look into it now. I'll reopen if there are too many failures.
2011-03-01 22:33 Mathew Topper <mathew.topper@...> commented
Traceback (most recent call last): File "/home/s0575124/programming/python/fifthwave/trunk/example.py", line 66, in ? test.report_convergence() File "/home/s0575124/programming/python/fifthwave/trunk/src/flightdeck.py", line 490, in report_convergence verify.report(grid_list, report_file, met_name=name) File "/home/s0575124/programming/python/fifthwave/trunk/src/verify.py", line 242, in report p = order_of_convergence (grid_list[0], grid_list[1], grid_list[2]) File "/home/s0575124/programming/python/fifthwave/trunk/src/verify.py", line 86, in order_of_convergence part_2 = epsilon23 / epsilon12 ZeroDivisionError: float division
2011-03-01 13:15 Mathew Topper <mathew.topper@...> created
Occurred when analysising 1s report with max amplitude in the z_wave_refinement_0_5m_x folder.