Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
The results are;
......F.EE.
======================================================================
ERROR: test_max_nan (test_utilities.TestUtilities)
Test the NaN handling of max_nan().
----------------------------------------------------------------------
Traceback (most recent call last):
File "/nas/mnh/georisk_models/earthquake/sandpits/duncan/switch_eqrm_core/eqrm
_code/plotting/test_utilities.py", line 491, in test_max_nan
got = util.max_nan(vector[:,2])
File "/nas/mnh/georisk_models/earthquake/sandpits/duncan/switch_eqrm_core/eqrm
_code/plotting/utilities.py", line 828, in max_nan
return vector[num.nanargmax(vector)]
IndexError: index must be either an int or a sequence
======================================================================
ERROR: test_min_nan (test_utilities.TestUtilities)
Test the NaN handling of min_nan().
----------------------------------------------------------------------
Traceback (most recent call last):
File "/nas/mnh/georisk_models/earthquake/sandpits/duncan/switch_eqrm_core/eqrm
_code/plotting/test_utilities.py", line 514, in test_min_nan
got = util.min_nan(vector[:,2])
File "/nas/mnh/georisk_models/earthquake/sandpits/duncan/switch_eqrm_core/eqrm
_code/plotting/utilities.py", line 838, in min_nan
return vector[num.nanargmin(vector)]
IndexError: index must be either an int or a sequence
======================================================================
FAIL: test_make_discrete_cpt (test_utilities.TestUtilities)
Test the make_discrete_cpt() function that makes discrete CPT files.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/nas/mnh/georisk_models/earthquake/sandpits/duncan/switch_eqrm_core/eqrm
_code/plotting/test_utilities.py", line 110, in test_make_discrete_cpt
self.failUnless(expected == generated, msg)
AssertionError: expected=
[['0.00', '32', '255', '0', '1.00', '32', '255', '0'], ['1.00', '96', '255', '0'
, '2.00', '96', '255', '0'], ['2.00', '191', '255', '0', '4.00', '191', '255', '
0'], ['4.00', '255', '127', '0', '8.00', '255', '127', '0'], ['B', '0', '255', '
0'], ['F', '255', '0', '0'], ['N', '255', '255', '255']]
generated=
[['0', '32', '255', '0', '1', '32', '255', '0'], ['1', '96', '255', '0', '2', '9
6', '255', '0'], ['2', '191', '255', '0', '4', '191', '255', '0'], ['4', '255',
'127', '0', '8', '255', '127', '0'], ['B', '0', '255', '0'], ['F', '255', '0', '
0'], ['N', '255', '255', '255']]
Original comment by duncan.g...@gmail.com
on 21 Jun 2013 at 5:07
fixed in revision 1428 and 1427
Original comment by duncan.g...@gmail.com
on 21 Jun 2013 at 6:01
Original issue reported on code.google.com by
duncan.g...@gmail.com
on 21 Jun 2013 at 5:06