vidarsko / ComFiT

A python library for simulating field theories with topological defects
MIT License
3 stars 3 forks source link

Piece of code that can be written more efficiently #34

Open vidarsko opened 1 week ago

vidarsko commented 1 week ago

vector_field_copy = [] for n in range(vector_field.shape[0]): vector_field_copy.append(self.plot_tool_extend_field(vector_field[n])) vector_field = np.array(vector_field_copy)

jonasron commented 5 days ago

Where is this from?

vidarsko commented 5 days ago

It is from the plot_vector_field function. It is mostly a note to myself, but I believe it can be written more efficiently...