Commit 420e7fa0 authored by Roberts Ivanovs's avatar Roberts Ivanovs
Browse files

Changed the incorrectly encoded text file

the letter "ž" was incorrectly encoded
parent da0e8eb3
Pipeline #437 failed with stages
......@@ -2,7 +2,7 @@ import csv
def generate_matrix(default=None):
with open('distances.txt', 'r', encoding="IBM775") as old_dist:
with open('distances.txt', 'r', encoding="utf-8") as old_dist:
reader = csv.reader(old_dist, delimiter='\n')
cities = []
matrix = []
......
......@@ -13,7 +13,7 @@ Preili 396 220 260 275 327 218 323 185 204 53 0 168 104 82 237 419 367 59 235 24
Ogre 228 126 176 107 159 55 155 17 36 206 168 0 136 233 108 251 199 229 67 73 107 188 101 193 89 74 226 211 55 131
Madona 364 115 155 243 295 115 291 153 172 95 104 136 0 122 132 387 335 163 203 209 61 51 237 147 87 164 89 96 85 194
Ludza 461 211 223 340 392 238 388 250 269 30 82 233 122 0 255 484 432 98 300 306 130 114 334 122 210 261 85 132 182 317
Limbai 310 46 96 189 241 54 237 99 88 228 237 108 132 255 0 333 281 296 149 155 192 141 183 278 45 153 179 159 163 62
Limbaži 310 46 96 189 241 54 237 99 88 228 237 108 132 255 0 333 281 296 149 155 192 141 183 278 45 153 179 159 163 62
Liepaja 119 351 401 168 145 296 98 234 215 457 419 251 387 484 333 0 91 480 201 178 358 426 150 444 332 228 464 444 306 356
Kuldiga 58 299 349 96 58 244 52 182 155 405 367 199 335 432 281 91 0 428 137 132 306 374 104 392 280 182 412 392 254 304
Kraslava 457 278 285 336 388 279 384 246 265 87 59 229 163 98 296 480 428 0 296 302 126 176 330 44 251 257 167 214 178 362
......@@ -28,4 +28,4 @@ Bauska 237 174 224 106 160 119 132 57 67 234 196 74 164 261 153 228 182 257 87 6
Balvi 441 135 147 320 372 171 368 230 219 78 133 226 89 85 179 464 412 167 280 286 151 38 314 173 143 254 0 47 175 228
Aluksne 421 115 103 300 352 151 348 210 199 125 180 211 96 132 159 444 392 214 260 266 158 45 294 220 123 267 47 0 182 212
Aizkraukle 283 168 218 162 214 105 210 72 91 155 117 55 85 182 163 306 254 178 122 128 56 137 156 142 139 79 175 182 0 186
Ainai 333 85 133 212 264 109 260 122 111 290 301 131 194 317 62 356 304 362 172 178 238 190 206 326 107 179 228 212 186 0
Ainaži 333 85 133 212 264 109 260 122 111 290 301 131 194 317 62 356 304 362 172 178 238 190 206 326 107 179 228 212 186 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment