Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/floorplan_dsl/generators/variations.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@ def variation_floorplan_generator(
)

variations = custom_args["variations"]
if "seed" in custom_args and custom_args["seed"] is not None:
random.seed(int(custom_args["seed"]))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to cover the case where the seed is not passed in the args.


for i in range(int(variations)):
seed = random.randint(1000, 9999)
random.seed(seed)
fp_model.seed = seed
new_sample(fp_model, var_model)
context = dict(trim_blocks=True, lstrip_blocks=True)
Expand Down