Skip to content

Commit

Permalink
Removed local html file saving from draw_interactive_trace_vs_planned
Browse files Browse the repository at this point in the history
  • Loading branch information
Damerson1 committed Oct 21, 2024
1 parent c188647 commit dc53047
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,8 @@ def draw_trace_3d(self):
with lock:
try:
self.upload_to_gcs(gcs_path, interactive_html_content, content_type='text/html')
print(f"Html Report successfully uploaded to {gcs_path} in GCS.")
except Exception as e:
print(f"Failed to upload to GCS. Error: {str(e)}")
print(f"Failed to upload html to GCS. Error: {str(e)}")



Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,4 @@ def draw_interactive_trace_vs_planned(planed_position_list, actual_position_list
# zaxis_range=[-max_val, max_val]))
html_content = fig.to_html(full_html=True)

setup_dir(full_target_directory)
file_name = os.path.join(full_target_directory, str(drone_name) + "_interactive.html")
fig.write_html(file_name)
plt.close()

return html_content

0 comments on commit dc53047

Please sign in to comment.