예제 #1
0
 def tearDown(self):
   env.stop()
예제 #2
0
파일: find.py 프로젝트: dartharnold/EDTS
        print("Matching stations:")
        print("")
        cow = ColumnObjectWriter(5, ['<', '<', '<', '>', '<'], ['  ', '   '])
        for entry in sorted(stn_matches, key=lambda t: t.station.name):
            if parsed.show_ids or parsed.id64:
                id = " ({})".format(entry.station.id)
            else:
                id = ""
            cow.add([
                '',
                entry.station.system.to_string(),
                '{}{}'.format(entry.station.name, id),
                entry.station.distance.to_string() if entry.station.distance
                is not None else '???', entry.station.station_type
                if entry.station.station_type is not None else '???'
            ])
        cow.out()
        print("")

    if len(sys_matches) == 0 and len(stn_matches) == 0:
        print("")
        print("No matches")
        print("")


if __name__ == '__main__':
    env.configure_logging(env.global_args.log_level)
    env.start()
    run(env.local_args)
    env.stop()