I need to pad a numpy array at the start of the array if it is not 8 bits long.
For example:
If I have an array which is [1 0 0] it should be [0 0 0 0 0 1 0 0].
However, if it is already [1 0 0 0 0 0 0 0] (8 bits long), I do not have to do anything with it.
Thanks