Skip to content

Commit

Permalink
fix : HTML_Overall_Params_Table function modified #144
Browse files Browse the repository at this point in the history
  • Loading branch information
sepandhaghighi committed Mar 21, 2021
1 parent 5214e14 commit a9ebe27
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
16 changes: 2 additions & 14 deletions opem/Functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import datetime
from art import text2art
import opem.Script
from opem.Params import Version, Website, UpdateUrl, Warning_Message_1, Warning_Message_2, HTML_Init_Template, HTML_Input_Table_Template1, HTML_Input_Table_Template2
from opem.Params import Version, Website, UpdateUrl, Warning_Message_1, Warning_Message_2, HTML_Init_Template, HTML_Input_Table_Template1, HTML_Input_Table_Template2, HTML_Overall_Params_Table_Template1
import io
import os
import requests
Expand Down Expand Up @@ -474,19 +474,7 @@ def HTML_Overall_Params_Table(
"""
if header:
file.write('<h2 style="color:#ff7600;">Overall Parameters</h2>\n')
file.write(
'<table style="border:1px solid black;border-collapse: collapse;margin:15px;">\n')
file.write(
'<tr align="center" style="border:1px solid black;border-collapse: collapse;">\n')
file.write(
'<td style="border:1px solid black;padding:4px;border-collapse: collapse;">\n' +
"Parameter\n</td>")
file.write(
'<td style="border:1px solid black;padding:4px;border-collapse: collapse;">\n' +
"Description\n</td>")
file.write(
'<td style="border:1px solid black;padding:4px;border-collapse: collapse;">\n' +
"Value\n</td>\n</tr>\n")
file.write(HTML_Overall_Params_Table_Template1)
Input_Params_Keys = sorted(Input_Params.keys())
for key in Input_Params_Keys:
file.write(
Expand Down
9 changes: 9 additions & 0 deletions opem/Params.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@
<td style="border:1px solid black;padding:4px;border-collapse: collapse;">{2}</td>
"""

HTML_Overall_Params_Table_Template1 = """
<table style="border:1px solid black;border-collapse: collapse;margin:15px;">
<tr align="center" style="border:1px solid black;border-collapse: collapse;">
<td style="border:1px solid black;padding:4px;border-collapse: collapse;">Parameter</td>
<td style="border:1px solid black;padding:4px;border-collapse: collapse;">Description</td>
<td style="border:1px solid black;padding:4px;border-collapse: collapse;">Value</td>
</tr>
"""

Amphlett_InputParams = {
"T": "Cell operation temperature [K]",
"PH2": "Partial pressure [atm]",
Expand Down

0 comments on commit a9ebe27

Please sign in to comment.