How to set velocity manually #5110
secretqsan
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Can I set the velocities in a universe manually? I tried by the following code:
for ts in u.trajectory:
v = np.array(np.loadtxt(f'velocity_{ts.frame}.dat'))
ts.velocities = v
but the velocities of all the frames are equal to the last frame. How can I do this properly?
Beta Was this translation helpful? Give feedback.
All reactions