Update transform panel to include seed boolean#33
Conversation
…rgument and .sh script to launch with specificed randomisation seed
sfmig
left a comment
There was a problem hiding this comment.
Looks alright! But I have requested some changes, and have three larger comments:
- There were a few breakpoints from the Python debugger here and there. When I removed them, I got the following error:
-
I realised we use a different approach to generate random numbers . I use numpy's random number generator and you use the random module. It is probably a good idea to make it consistent. I guess this is related to expanding this PR to also apply the same seed to the materials panel. So maybe we can cover it in that future PR? Happy to chat about it, or if you agree feel free to open an issue.
-
I think we can remove some of the commented blocks, and if you can add docstrings to the functions that would be great.
Co-authored-by: sfmig <33267254+sfmig@users.noreply.github.com>
Co-authored-by: sfmig <33267254+sfmig@users.noreply.github.com>
Co-authored-by: sfmig <33267254+sfmig@users.noreply.github.com>
Co-authored-by: sfmig <33267254+sfmig@users.noreply.github.com>
Co-authored-by: sfmig <33267254+sfmig@users.noreply.github.com>
Co-authored-by: sfmig <33267254+sfmig@users.noreply.github.com>
Co-authored-by: sfmig <33267254+sfmig@users.noreply.github.com>
Co-authored-by: sfmig <33267254+sfmig@users.noreply.github.com>
Co-authored-by: sfmig <33267254+sfmig@users.noreply.github.com>
Co-authored-by: sfmig <33267254+sfmig@users.noreply.github.com>
…ommented out blocks
sfmig
left a comment
There was a problem hiding this comment.
looks great!
One thing I noticed when testing it out is that when I launch it with sh randomisation_seed.sh, the seed is set to the value in the bash script but the randomisation toggle is set to False. I think it would be nice to have it set to True if a seed is passed as a command line argument.
The rest are very minor things
| rot_y_range, | ||
| rot_z_range, | ||
| delta_on, | ||
| seed_no, |
There was a problem hiding this comment.
can we add a docstring for this?
Co-authored-by: sfmig <33267254+sfmig@users.noreply.github.com>
Co-authored-by: sfmig <33267254+sfmig@users.noreply.github.com>
Co-authored-by: sfmig <33267254+sfmig@users.noreply.github.com>
Co-authored-by: sfmig <33267254+sfmig@users.noreply.github.com>

Seed boolean added to transform panel
Modified install_and_enable_addons.py to include an additional randomisation seed argument
randomisation_seed.sh script to automate with an example seed of 32