AD1D test doesn't work
Created originally on Bitbucket by avmo (Ashwin Vishnu)
~/s/gfdyn ❯❯❯ fluidsim-test -m fluidsim.solvers.ad1d.test_solver (gfdyn)
Fluidsim guesses that it is tested so it loads the Agg Matplotlib backend.
Compilation of jit functions disabled.
test_init (test_solver.TestInitAD1D)
Only test the initialization ... ok
test_simul (test_solver.TestSolverAD1D) ... ERROR
======================================================================
ERROR: test_simul (test_solver.TestSolverAD1D)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/avmo/src/gfdyn/fluidsim/fluidsim/solvers/ad1d/test_solver.py", line 87, in test_simul
sim.output.phys_fields.plot(field="s", time=10)
File "/home/avmo/src/gfdyn/fluidsim/fluidsim/base/output/phys_fields1d.py", line 61, in plot
field = self.get_field_to_plot(key=key_field, time=time)
File "/home/avmo/src/gfdyn/fluidsim/fluidsim/base/output/phys_fields.py", line 276, in get_field_to_plot
interpolate_time=interpolate_time,
File "/home/avmo/src/gfdyn/fluidsim/fluidsim/base/output/phys_fields.py", line 401, in get_field_to_plot
if self.times.min() > time > self.times.max():
File "/usr/lib/python3.7/site-packages/numpy/core/_methods.py", line 32, in _amin
return umr_minimum(a, axis, None, out, keepdims, initial)
ValueError: zero-size array to reduction operation minimum which has no identity
----------------------------------------------------------------------
Ran 2 tests in 1.840s
FAILED (errors=1)
Needs numpy==1.16.0 to reproduce?