Explorar o código

Comments and typo

Olivier Marty %!s(int64=8) %!d(string=hai) anos
pai
achega
565149cfe0
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      main.py

+ 2 - 2
main.py

@@ -23,9 +23,9 @@ def gen_sources(sourceProviders, location):
     print("Unable to find a position for " + location)
   else:
     for sp in sourceProviders:
-      # keep 2 nearest sources, if distance < 2 km
+      # keep 2 nearest sources (and distance equivalent), if distance < 2 km
       ids_pos = {id: pos for (dist, pos, id) in k_neighbors(sp.dic_of_positions(), position, 2) if dist < 2}
-      print('Cherches les sources : ', list(ids_pos.keys()))
+      print('Cherche les sources : ', list(ids_pos.keys()))
       for source in sp.sources_of_ids(ids_pos):
           yield source