Hi, I currently have a .txt file containing xyz coordinates of 10 particles which looks like:
1.0,2.0,3.0
4.0,5.0,6.0
...
8.0,9.0,10.0
and I want to turn this into an array which is the same shape as the data in the .txt file ie there would be 3 colums representing x,y,z coords and 10 rows representing the 10 particles. Im quite new to python so any help on how to do this would be great
1.0,2.0,3.0
4.0,5.0,6.0
...
8.0,9.0,10.0
and I want to turn this into an array which is the same shape as the data in the .txt file ie there would be 3 colums representing x,y,z coords and 10 rows representing the 10 particles. Im quite new to python so any help on how to do this would be great
Comment