Fix typo in parameter names

This commit is contained in:
Charles Peyrat 2021-01-08 07:05:02 +01:00
parent e21d4d230c
commit 5ba07afc9f
1 changed files with 4 additions and 4 deletions

View File

@ -66,10 +66,10 @@ class Generator:
def corr_meta_info(self):
if random() < self.params["corridor_chance"]:
h_sup = randint(self.params["min_h_corr"], \
self.params["max_h_corr"]) if random() < .5 else 0
w_sup = 0 if h_sup else randint(self.params["min_w_corr"], \
self.params["max_w_coor"])
h_sup = randint(self.params["min_v_corr"], \
self.params["max_v_corr"]) if random() < .5 else 0
w_sup = 0 if h_sup else randint(self.params["min_h_corr"], \
self.params["max_h_corr"])
h_off = h_sup if random() < .5 else 0
w_off = w_sup if random() < .5 else 0
return h_sup, w_sup, h_off, w_off