Skip to content

Commit 2ee00e7

Browse files
Made hex mesh test doc str, raw str to avoid depr warning
1 parent 866035c commit 2ee00e7

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tests/hexagonal_mesh_test.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def to_sets(arr):
1515

1616

1717
def test_coordinates_x():
18-
"""
18+
r"""
1919
2020
/\ /\
2121
| | | Hexagon size 1.
@@ -34,7 +34,7 @@ def test_coordinates_x():
3434

3535

3636
def test_coordinates_y():
37-
"""
37+
r"""
3838
/\ /\
3939
| | |
4040
| 2| 3|
@@ -61,7 +61,7 @@ def test_coordinates_y():
6161

6262

6363
def test_neighbours_x():
64-
"""
64+
r"""
6565
6666
/\ /\
6767
| | | Hexagon size 1.
@@ -76,7 +76,7 @@ def test_neighbours_x():
7676

7777

7878
def test_neighbours_x_periodic():
79-
"""
79+
r"""
8080
8181
/\ /\
8282
| | | Hexagon size 1.
@@ -90,7 +90,7 @@ def test_neighbours_x_periodic():
9090

9191

9292
def test_neighbours_x_periodic_all():
93-
"""
93+
r"""
9494
9595
/\ /\
9696
| | | Hexagon size 1.
@@ -105,7 +105,7 @@ def test_neighbours_x_periodic_all():
105105

106106

107107
def test_neighbours_y():
108-
"""
108+
r"""
109109
/\
110110
| |
111111
| 1|
@@ -122,7 +122,7 @@ def test_neighbours_y():
122122

123123

124124
def test_neighbours_y_square():
125-
"""
125+
r"""
126126
/\
127127
| |
128128
| 1|
@@ -138,7 +138,7 @@ def test_neighbours_y_square():
138138

139139

140140
def test_neighbours_y_periodic():
141-
"""
141+
r"""
142142
/\
143143
| |
144144
| 1|
@@ -173,7 +173,7 @@ def test_neighbours_y_periodic():
173173

174174

175175
def test_nearest_neighbours_multiple():
176-
"""
176+
r"""
177177
/\ /\ /\
178178
| | | |
179179
| 6| 7| 8|
@@ -207,7 +207,7 @@ def test_nearest_neighbours_multiple():
207207

208208

209209
def test_nearest_neighbours_multiple_square():
210-
"""
210+
r"""
211211
212212
/\ /\ /\
213213
| | | |
@@ -239,7 +239,7 @@ def test_nearest_neighbours_multiple_square():
239239
# -----------------------------------------------------------------------------
240240

241241
def test_neighbours_9shells_square_odd_row():
242-
"""
242+
r"""
243243
244244
Testing neighbour indexes manually, for a 11x11 hexagonal mesh with square
245245
alignment. In this test we check the neighbours of the 60th lattice site,

0 commit comments

Comments
 (0)