Fix pipeline
Due to an update of the docker containers, some parts of pystencils need to be adapted.
- The test
test_field_layouts
intest_buffer_gpu
fails because thezeros
function of a gpu_array can only deal with continuous data since 2021.1. Thus the test case fails now with thezyxf
field layout. This was fixed by replacingzeros_like
withempty_like
- matplotlib has dropped deprecated functionality. In particular, it is now necessary to distinguish between Axes3D and Axes. This was fixed by using Axes3D now.
- randomgen 1.20.0 changed the behavior of
Philox
'sadvance
method. This was fixed by directly seeding to the correct counter value. - kerncraft 0.8.10 made some internal changes which produces floats now. The problem was introduced in line 516 in this commit. In particular the determination of the
counter
variable is now different and produces floats instead of integers. This is probably a kerncraft bug because the loop counters should not be obtained as floats. Later in the code they enter arange
function and this causes the failure.
Edited by Michael Kuron