Skip to content

Commit 0b60347

Browse files
committed
fix: code cleaning
1 parent 72b94e1 commit 0b60347

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/unit_tests/modelling/test_intrusions.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_intrusion_network():
2525
intrusion_network_type='shortest path',
2626
model=model,
2727
)
28-
delta_c = 1e10
28+
delta_c = 2
2929
INet.set_data()
3030
INet.set_contact_anisotropies([conformable_feature])
3131
INet.set_sequence_of_exploited_anisotropies([conformable_feature])
@@ -40,7 +40,7 @@ def test_intrusion_network():
4040
stdv = INet.anisotropies_series_parameters['stratigraphy_0'][2]
4141
evaluated_inet_points = conformable_feature['feature'].evaluate_value(model.scale(intrusion_network_points))
4242

43-
assert np.all(np.logical_and((mean - stdv*delta_c)<= evaluated_inet_points,(mean + stdv*delta_c)>= evaluated_inet_points)), 'should it print sth?'
43+
assert np.all(np.logical_and((mean - stdv*delta_c)<= evaluated_inet_points,(mean + stdv*delta_c)>= evaluated_inet_points))
4444

4545

4646
def test_intrusion_body(lateral_conceptual_model, vertical_conceptual_model):
@@ -78,7 +78,7 @@ def test_intrusion_body(lateral_conceptual_model, vertical_conceptual_model):
7878

7979
IFrame = IFrame_builder.frame
8080

81-
assert isinstance(IFrame, StructuralFrame), 'print sth??'
81+
assert isinstance(IFrame, StructuralFrame)
8282

8383
IBody = IntrusionBody(
8484
intrusion_data,
@@ -96,13 +96,13 @@ def test_intrusion_body(lateral_conceptual_model, vertical_conceptual_model):
9696
IBody.create_grid_for_simulation()
9797
IBody.simulate_s_thresholds()
9898

99-
assert len(IBody.simulated_s_thresholds) > 0, 'simulation of lateral thresholds incomplete'
99+
assert len(IBody.simulated_s_thresholds) > 0
100100

101101
IBody.set_data_for_g_simulation()
102102
IBody.set_vertical_extent_conceptual_model(vertical_conceptual_model)
103103
IBody.set_g_simulation_GSLIBparameters({})
104104
IBody.make_g_simulation_variogram({})
105105
IBody.simulate_g_thresholds()
106106

107-
assert len(IBody.simulated_g_thresholds) > 0, 'simulation of growth thresholds incomplete'
107+
assert len(IBody.simulated_g_thresholds) > 0
108108

0 commit comments

Comments
 (0)