From 17a06a8a9e5b07ada636f3e11782394b6380da12 Mon Sep 17 00:00:00 2001 From: karandesai-96 Date: Sun, 3 Apr 2016 08:14:35 +0530 Subject: [PATCH] Remove redundant setting of void return of C methods. --- tardis/montecarlo/tests/test_cmontecarlo.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tardis/montecarlo/tests/test_cmontecarlo.py b/tardis/montecarlo/tests/test_cmontecarlo.py index bc1959b7f24..2f6b5147262 100644 --- a/tardis/montecarlo/tests/test_cmontecarlo.py +++ b/tardis/montecarlo/tests/test_cmontecarlo.py @@ -4,7 +4,7 @@ import numpy as np from tardis import __path__ as path -from tardis.montecarlo.struct import RPacket, StorageModel, RKState +from tardis.montecarlo.struct import RPacket, StorageModel test_path = os.path.join(path[0], 'montecarlo', 'test_montecarlo.so') tests = CDLL(test_path) @@ -134,7 +134,6 @@ def test_compute_distance2boundary(packet_params, expected_params, packet, model packet.r = packet_params['r'] packet.recently_crossed_boundary = packet_params['recently_crossed_boundary'] - cmontecarlo_methods.compute_distance2boundary.restype = c_voidp cmontecarlo_methods.compute_distance2boundary(byref(packet), byref(model)) np.testing.assert_almost_equal(packet.d_boundary, expected_params['d_boundary']) @@ -182,7 +181,6 @@ def test_compute_distance2continuum(packet_params, model_params, packet.virtual_packet = packet_params['virtual_packet'] model.cont_status = model_params['cont_status'] - cmontecarlo_methods.compute_distance2continuum.restype = c_voidp cmontecarlo_methods.compute_distance2continuum(byref(packet), byref(model)) np.testing.assert_almost_equal(packet.chi_cont, expected_params['chi_cont']) @@ -217,7 +215,6 @@ def test_increment_j_blue_estimator(packet_params, j_blue_idx, expected, packet, cmontecarlo_methods.compute_distance2line(byref(packet), byref(model)) cmontecarlo_methods.move_packet(byref(packet), byref(model), c_double(1.e13)) - cmontecarlo_methods.increment_j_blue_estimator.restype = c_voidp cmontecarlo_methods.increment_j_blue_estimator(byref(packet), byref(model), c_double(packet.d_line), c_int64(j_blue_idx))