浏览代码

Comments and typo

Olivier Marty 8 年之前
父节点
当前提交
565149cfe0
共有 1 个文件被更改,包括 2 次插入2 次删除
  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