Awais Khan
Awais Khan

Reputation: 175

How to create a vector of Matrices in python

In my code i have calculated multiple flow map with respect to time and want to store in one list. This is what i want to do in may code

enter image description here

Upvotes: 1

Views: 2395

Answers (1)

Berriel
Berriel

Reputation: 13601

Before entering your time loop, create an empty list:

listOfFlowMaps = []

Then, after creating your flow map:

flowmap = np.array([...]) # your flow map
listOfFlowMaps.append(flowmap) # add the flow map to the list

Upvotes: 2

Related Questions