Skip to content
Snippets Groups Projects
Commit ee44cbc5 authored by u214892's avatar u214892
Browse files

bugfix #141: check_path_exists and tests

parent c0233010
No related branches found
No related tags found
No related merge requests found
...@@ -154,7 +154,7 @@ def random_schedule_generator(speed_ratio_map: Mapping[float, float] = None) -> ...@@ -154,7 +154,7 @@ def random_schedule_generator(speed_ratio_map: Mapping[float, float] = None) ->
cnt = 0 cnt = 0
while re_generate: while re_generate:
cnt += 1 cnt += 1
if cnt >= 1: if cnt > 1:
print("re_generate cnt={}".format(cnt)) print("re_generate cnt={}".format(cnt))
if cnt > 1000: if cnt > 1000:
raise Exception("After 1000 re_generates still not success, giving up.") raise Exception("After 1000 re_generates still not success, giving up.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment