subdomain.py crashes test routines with VisibleDeprecationWarning

25 views
Skip to first unread message

Daniel Grötsch

unread,
May 4, 2016, 6:55:09 AM5/4/16
to sailfish-cfd
Hello,

I'm new to sailfish and trying to get the test routines running on my computer (Ubuntu 16.04). I installed everything as described in the manual, but the test routine crashes and i don´t know how to fix it at the moment. Here are the results which i get when calling make in the sailfish directory. Thanks in advance for your help

python tests/controller.py
.....
----------------------------------------------------------------------
Ran 5 tests in 0.000s

OK
python tests/node_type.py
..
----------------------------------------------------------------------
Ran 2 tests in 0.001s

OK
python tests/sim.py
.
----------------------------------------------------------------------
Ran 1 test in 0.000s

OK
python tests/subdomain.py
/home/sailfish/sailfish/subdomain.py:536: VisibleDeprecationWarning: boolean index did not match indexed array along dimension 2; dimension is 40 but corresponding boolean dimension is 34
  self._type_map_base[where] = node_type.id
/home/sailfish/sailfish/subdomain.py:538: VisibleDeprecationWarning: boolean index did not match indexed array along dimension 2; dimension is 40 but corresponding boolean dimension is 34
  assert np.all(self._param_map_base[where] == 0),\
/home/sailfish/sailfish/subdomain.py:540: VisibleDeprecationWarning: boolean index did not match indexed array along dimension 2; dimension is 40 but corresponding boolean dimension is 34
  self._param_map_base[where] = key
.../home/sailfish/sailfish/subdomain.py:536: VisibleDeprecationWarning: boolean index did not match indexed array along dimension 1; dimension is 72 but corresponding boolean dimension is 66
  self._type_map_base[where] = node_type.id
/home/sailfish/sailfish/subdomain.py:538: VisibleDeprecationWarning: boolean index did not match indexed array along dimension 1; dimension is 72 but corresponding boolean dimension is 66
  assert np.all(self._param_map_base[where] == 0),\
/home/sailfish/sailfish/subdomain.py:540: VisibleDeprecationWarning: boolean index did not match indexed array along dimension 1; dimension is 72 but corresponding boolean dimension is 66
  self._param_map_base[where] = key
.EE....
======================================================================
ERROR: test_array_setting (__main__.TestNodeTypeSetting2D)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/subdomain.py", line 48, in test_array_setting
    sub.reset(encode=False)
  File "/home/sailfish/sailfish/subdomain.py", line 673, in reset
    self.boundary_conditions(*self._get_mgrid_base(self.config))
  File "tests/subdomain.py", line 19, in boundary_conditions
    multifield((0.01 * (hx - self.gy / 2)**2, 0.0), where)))
  File "/home/sailfish/sailfish/subdomain.py", line 537, in set_node
    key = hash((node_type.id, frozenset(node_type.params.items())))
TypeError: unhashable type: 'recarray'

======================================================================
ERROR: test_array_setting (__main__.TestNodeTypeSetting3D)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/subdomain.py", line 80, in test_array_setting
    sub.reset(encode=False)
  File "/home/sailfish/sailfish/subdomain.py", line 673, in reset
    self.boundary_conditions(*self._get_mgrid_base(self.config))
  File "tests/subdomain.py", line 67, in boundary_conditions
    0.03 * (hz - self.gz / 2)**2, 0.0), where)))
  File "/home/sailfish/sailfish/subdomain.py", line 537, in set_node
    key = hash((node_type.id, frozenset(node_type.params.items())))
TypeError: unhashable type: 'recarray'

----------------------------------------------------------------------
Ran 10 tests in 0.193s

FAILED (errors=2)
Makefile:14: die Regel für Ziel „test_short“ scheiterte
make: *** [test_short] Fehler 1


Xavier Quinn

unread,
Jul 27, 2016, 12:03:20 PM7/27/16
to sailfish-cfd
Hello,
I am having this same issue and I'm wondering if you ever sorted it out,
Thank you
Reply all
Reply to author
Forward
0 new messages