Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/unomd/main/run_html_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ def save_molecule_viewer_html(config):
</html>
"""

with open(config.get("path_molviewer_html"), "w") as f:
with open(config.get("path_molviewer_html"), "w", encoding='utf-8') as f:
f.write(custom_html)

logger.info(f"Location: {config.get('path_molviewer_html')}")
Expand Down Expand Up @@ -632,7 +632,7 @@ def save_rmsd_rmsf_html(config):

# Save summary table
summary_path = html_plot_path.replace('.html', '_summary.html')
with open(summary_path, 'w') as f:
with open(summary_path, 'w', encoding='utf-8') as f:
f.write(summary_html)
logger.info(f"Analysis summary table saved to: {summary_path}")

Expand Down Expand Up @@ -675,4 +675,4 @@ def save_rmsd_rmsf_html(config):
else:
logger.error("No config file provided. Please provide a config file.")
raise ValueError("No config file provided. Please provide a config file.")
save_rmsd_rmsf_html(config)
save_rmsd_rmsf_html(config)