Skip to content

Commit a271bfb

Browse files
authored
Merge pull request #28 from MetaboHUB-MetaToul-FluxoMet/Dev
Bump to v2.0.3
2 parents 35d75aa + 098a6bd commit a271bfb

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

isodesign/base/process.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -693,14 +693,14 @@ def export_data(self, number, figure):
693693
:param number: number corresponding to the analysis
694694
:param figure: plotly figure object
695695
"""
696-
res_folder_path = Path(f"{self.output_folder_path}/{self.all_scores[number]["name"]}_res")
696+
res_folder_path = Path(f"{self.output_folder_path}/{self.all_scores[number]['name']}_res")
697697
res_folder_path.mkdir(parents=True, exist_ok=True)
698698

699699
# Export the dataframe and the scores table to tsv files
700-
self.all_scores[number]["dataframe"].to_csv(f"{res_folder_path}/{self.all_scores[number]["name"]}_dataframe.tsv", index=False, sep="\t")
701-
self.all_scores[number]["columns_scores"].to_csv(f"{res_folder_path}/{self.all_scores[number]["name"]}_scores.tsv", index=True, sep="\t")
700+
self.all_scores[number]["dataframe"].to_csv(f"{res_folder_path}/{self.all_scores[number]['name']}_dataframe.tsv", index=False, sep="\t")
701+
self.all_scores[number]["columns_scores"].to_csv(f"{res_folder_path}/{self.all_scores[number]['name']}_scores.tsv", index=True, sep="\t")
702702

703-
figure.write_html(f"{res_folder_path}/{self.all_scores[number]["name"]}_barplot.html")
703+
figure.write_html(f"{res_folder_path}/{self.all_scores[number]['name']}_barplot.html")
704704

705705

706706
# if __name__ == "__main__":

isodesign/ui/pages/2_Define_label_inputs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def reintegrate_rows(indexes : list):
195195

196196
df_combinations=st.dataframe(df,
197197
hide_index=True,
198-
use_container_width=True,
198+
width="stretch",
199199
on_select="rerun",
200200
selection_mode="multi-row",
201201
key="df_combinations")
@@ -220,7 +220,7 @@ def reintegrate_rows(indexes : list):
220220

221221
df_unused_combs = st.dataframe(df_unused,
222222
hide_index=True,
223-
use_container_width=True,
223+
width="stretch",
224224
on_select="rerun",
225225
selection_mode="multi-row")
226226

isodesign/ui/pages/4_Analyze_results.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def display_dataframe(count):
6565
# Display the simulation results dataframe. The table is updated according to the filters used
6666
st.dataframe(process_object.filtered_dataframe if process_object.filtered_dataframe is not None
6767
else process_object.summary_dataframe,
68-
use_container_width=True,
68+
width="stretch",
6969
hide_index=True,
7070
key=f"display_dataframe_{count}")
7171

@@ -190,7 +190,7 @@ def criteria_block(count):
190190
table = st.dataframe(process_object.scores,
191191
on_select="rerun",
192192
selection_mode="multi-row",
193-
use_container_width=True,
193+
width="stretch",
194194
key=f"table_score_{count}")
195195

196196
with barplot:
@@ -317,10 +317,11 @@ def criteria_block(count):
317317
export_button = st.button("Export", key=f"export_{count}")
318318

319319
if export_button:
320+
header_name = st.session_state[f"header_{count}"]
320321
with st.spinner("Exporting data ..."):
321322
process_object.export_data(count, st.session_state[f"fig_{count}"])
322-
st.success(f"'{st.session_state[f"header_{count}"]}' exported successfully in {process_object.output_folder_path}.")
323-
logger.info(f"'{st.session_state[f"header_{count}"]}' exported successfully in {process_object.output_folder_path}.")
323+
st.success(f"'{header_name}' exported successfully in {process_object.output_folder_path}.")
324+
logger.info(f"'{header_name}' exported successfully in {process_object.output_folder_path}.")
324325
# Save the "score" block to the process_object and save it to a pickle file
325326
process_object.register_scores(count, block_name=st.session_state[f"header_{count}"])
326327
process_object.save_process_to_file()

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "isodesign"
3-
version = "2.0.2"
3+
version = "2.0.3"
44
description = "Facilitates the choice of the optimal isotopic composition of labeled substrates in 13C-fluxomics experiments."
55
authors = ["rkouakou <kouakou@insa-toulouse.fr>, llegregam <legregam@insa-toulouse.fr>, Pierre Millard <millard@insa-toulouse.fr>, sgsokol <sokol@insa-toulouse.fr>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)