Currently, I'm doing this:
myDict = {}
for in range(10):
myDict[i] = np.ones(8)
What's I'd like at the end is a square array, where ideally I don't have to define the all the geometry up front.
I tried this:
myArray = np.array([])
for i in range(10):
myArray[i] = np.ones(8)
but it doesn't let me index.
What's the cleanest way to do this?