Skip to content

Commit

Permalink
FIX: moved the kde plot from the CreateMethod to EvaluateMethodCard
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeniaVoytik committed Nov 10, 2021
1 parent 596db21 commit 50f58d9
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions diaid_pasef/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1134,17 +1134,7 @@ def create_method(self, event):
'diaPASEF_method.txt'
)
self.path_method.value = final_method_path
self.layout[3][0] = pn.pane.PNG(
object=os.path.join(
method_conf["input"]["save_at"],
'final_method',
'Kernel_density_distribution_and_final_method.png'
),
height=345,
width=460,
align='center',
)
self.layout[3][1] = pn.widgets.DataFrame(
self.layout[3][0] = pn.widgets.DataFrame(
pd.read_csv(
final_method_path,
header=None,
Expand Down Expand Up @@ -1201,7 +1191,9 @@ def create(self):
margin=(-20, 10, -20, 10),
),
pn.Row(
None
None,
None,
align='center'
),
title='Method Evaluation',
collapsed=True,
Expand Down Expand Up @@ -1239,7 +1231,7 @@ def evaluate_method(self, event):
method_eval_table = pn.widgets.DataFrame(
autosize_mode='fit_viewport',
# margin=(0, 0, 0, 100),
align='center',
# align='center',
auto_edit=False,
)

Expand Down Expand Up @@ -1291,7 +1283,18 @@ def evaluate_method(self, event):
)
method_eval_table.value = final_df

self.layout[3][0] = method_eval_table
self.layout[3][0] = pn.pane.PNG(
object=os.path.join(
method_conf["input"]["save_at"],
'final_method',
'Kernel_density_distribution_and_final_method.png'
),
height=345,
width=460,
align='center',
margin=(0, 20, 0, 0)
)
self.layout[3][1] = method_eval_table

def get_css_style(
file_name="dashboard_style.css",
Expand Down

0 comments on commit 50f58d9

Please sign in to comment.