Public repository of the Cosmic Linear Anisotropy Solving System (master for the most recent version of the standard code; GW_CLASS to include Cosmic Gravitational Wave Background anisotropies; classnet branch for acceleration with neutral networks; ExoCLASS branch for exotic energy injection; class_matter branch for FFTlog)
When I rannosetests test_class.py, I found 102 errors.
As far as I checked, all the errors are the same and I paste one of them below.
It seems the code tried to calculate abs of dictionary.
As I checked test_class.py, it seems there is subdict in a dict. I assume that the processes with errors somehow overlook the subdict.
-------------------- >> begin captured stdout << ---------------------
P_k_ini type = inflation_H
modes = s, t
tensor method = exact
output = tCl pCl lCl nCl sCl
--> Class is ready
--------------------- >> end captured stdout << ----------------------
======================================================================
ERROR: Create a few instances based on different cosmologies [with inputdict={'P_k_ini type': 'inflation_H', ... lCl nCl sCl', 'lensing': 'yes'}]
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/yminami/.pyenv/versions/anaconda3-5.3.1/envs/py37/lib/python3.6/site-packages/nose_parameterized/parameterized.py", line 392, in standalone_func
return func(*(a + p.args), **p.kwargs)
File "/home/yminami/Git/class_public/python/test_class.py", line 335, in test_0wrapper_implementation
self.compare_output(self.cosmo, self.cosmo_newt)
File "/home/yminami/Git/class_public/python/test_class.py", line 455, in compare_output
np.abs(value).max(), np.abs(to_test[key]).max())
TypeError: bad operand type for abs(): 'dict'
When I ran
nosetests test_class.py
, I found 102 errors. As far as I checked, all the errors are the same and I paste one of them below. It seems the code tried to calculate abs of dictionary. As I checkedtest_class.py
, it seems there issubdict
in adict
. I assume that the processes with errors somehow overlook thesubdict
.