GeoscienceAustralia / eqrm

Automatically exported from code.google.com/p/eqrm
Other
5 stars 4 forks source link

Test_all.py failing (3 failures) on a new MacBookAir installation #139

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
test_all.py is currently failing on a new mac installation (see output below).

I'm happy to bring the computer in to GA sometime if it helps.

Some extra information (regarding versions) that may be useful:
Geosciences-MacBook-Air:eqrm PCUser$ python
Python 2.7.5 (default, Aug 25 2013, 00:04:04) 
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.__version__
'1.8.0'
>>> import scipy
>>> scipy.__version__
'0.13.3'
>>> import shapely
>>> shapely.__version__
'1.3.0'

Here is the output from test_all.py:
Geosciences-MacBook-Air:eqrm PCUser$ python test_all.py 

Testing path 
/Users/PCUser/Documents/datafiles2/workstuff/sandpits/google_code/eqrm/eqrm_code
/..:

................................................................................
......................................./opt/local/Library/Frameworks/Python.fram
ework/Versions/2.7/lib/python2.7/site-packages/numpy/lib/scimath.py:256: 
RuntimeWarning: divide by zero encountered in log
  return nx.log(x)
../Users/PCUser/Documents/datafiles2/workstuff/sandpits/google_code/eqrm/eqrm_co
de/damage_model.py:302: RuntimeWarning: divide by zero encountered in divide
  temp = (1/beta)*log(value/threshold)
................................................................................
....................................................E...........................
......EE........................................................................
................................................................................
..................................
======================================================================
ERROR: test_Abrahamson08 
(test_ground_motion_interface.Test_ground_motion_interface)
Test the Abrahamson08 model.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/PCUser/Documents/datafiles2/workstuff/sandpits/google_code/eqrm/eqrm_code/../eqrm_code/test_ground_motion_interface.py", line 1638, in test_Abrahamson08
    sigma_coeffs)
  File "/Users/PCUser/Documents/datafiles2/workstuff/sandpits/google_code/eqrm/eqrm_code/ground_motion_interface.py", line 4055, in Abrahamson08_distribution
    T_iTd1 = Abrahamson08_coefficient_period[:,iTd1]
IndexError: too many indices

======================================================================
ERROR: test_all_ground_motion_interfaces 
(test_ground_motion_specification.Test_ground_motion_specification)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/PCUser/Documents/datafiles2/workstuff/sandpits/google_code/eqrm/eqrm_code/../eqrm_code/test_ground_motion_specification.py", line 2323, in test_all_ground_motion_interfaces
    name)
  File "/Users/PCUser/Documents/datafiles2/workstuff/sandpits/google_code/eqrm/eqrm_code/../eqrm_code/test_ground_motion_specification.py", line 2305, in ground_motion_interface_conformance
    model_name)
  File "/Users/PCUser/Documents/datafiles2/workstuff/sandpits/google_code/eqrm/eqrm_code/../eqrm_code/test_ground_motion_specification.py", line 2280, in ground_motion_interface_conformance
    dip=dip, width=width)
  File "/Users/PCUser/Documents/datafiles2/workstuff/sandpits/google_code/eqrm/eqrm_code/ground_motion_calculator.py", line 152, in distribution_function
    (log_mean, log_sigma) = self.GM_spec.distribution(**distribution_args)
  File "/Users/PCUser/Documents/datafiles2/workstuff/sandpits/google_code/eqrm/eqrm_code/ground_motion_interface.py", line 4055, in Abrahamson08_distribution
    T_iTd1 = Abrahamson08_coefficient_period[:,iTd1]
IndexError: too many indices

======================================================================
ERROR: test_all_multi_ground_motion_interfaces 
(test_ground_motion_specification.Test_ground_motion_specification)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/PCUser/Documents/datafiles2/workstuff/sandpits/google_code/eqrm/eqrm_code/../eqrm_code/test_ground_motion_specification.py", line 2329, in test_all_multi_ground_motion_interfaces
    name)
  File "/Users/PCUser/Documents/datafiles2/workstuff/sandpits/google_code/eqrm/eqrm_code/../eqrm_code/test_ground_motion_specification.py", line 2305, in ground_motion_interface_conformance
    model_name)
  File "/Users/PCUser/Documents/datafiles2/workstuff/sandpits/google_code/eqrm/eqrm_code/../eqrm_code/test_ground_motion_specification.py", line 2290, in ground_motion_interface_conformance
    dip=dip, width=width)
  File "/Users/PCUser/Documents/datafiles2/workstuff/sandpits/google_code/eqrm/eqrm_code/ground_motion_calculator.py", line 319, in _distribution_function
    mag_type=GM_model.GM_spec.magnitude_type)
  File "/Users/PCUser/Documents/datafiles2/workstuff/sandpits/google_code/eqrm/eqrm_code/ground_motion_calculator.py", line 152, in distribution_function
    (log_mean, log_sigma) = self.GM_spec.distribution(**distribution_args)
  File "/Users/PCUser/Documents/datafiles2/workstuff/sandpits/google_code/eqrm/eqrm_code/ground_motion_interface.py", line 4055, in Abrahamson08_distribution
    T_iTd1 = Abrahamson08_coefficient_period[:,iTd1]
IndexError: too many indices

----------------------------------------------------------------------
Ran 475 tests in 4.463s

FAILED (errors=3)

Original issue reported on code.google.com by RobinsonDavidJ0@gmail.com on 17 Mar 2014 at 11:27

GoogleCodeExporter commented 9 years ago

Original comment by duncan.g...@gmail.com on 26 Mar 2014 at 5:53