Skip to content

Commit

Permalink
remove reading optimized coefficients
Browse files Browse the repository at this point in the history
  • Loading branch information
skim0119 committed Oct 29, 2020
1 parent 0d99f28 commit b8e4e2f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions examples/Visualization/continuum_snake.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,7 @@ def make_callback(self, system, time, current_step: int):
SAVE_RESULTS = True

# Add muscle forces on the rod
if os.path.exists("optimized_coefficients.txt"):
t_coeff_optimized = np.genfromtxt(
"optimized_coefficients.txt", delimiter=","
)
wave_length = 0.97 * 1.0 # 1.0 is base length
t_coeff_optimized = np.hstack((t_coeff_optimized, wave_length))
else:
t_coeff_optimized = np.array([17.4, 48.5, 5.4, 14.7, 0.97])
t_coeff_optimized = np.array([17.4, 48.5, 5.4, 14.7, 0.97])

# run the simulation
pp_list = run_snake(
Expand Down

0 comments on commit b8e4e2f

Please sign in to comment.