Skip to content

Commit

Permalink
clean notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
TieuLongPhan committed Sep 16, 2024
1 parent 928f39f commit 7d43a9c
Show file tree
Hide file tree
Showing 9 changed files with 178 additions and 1,303 deletions.
2 changes: 1 addition & 1 deletion Data/Testcase/demo.json.gz

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions Docs/Analysis/_1_template_extraction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"\n",
"\n",
"def save_svg_to_file(svg_object):\n",
" svg_data = svg_object.data \n",
" svg_data = svg_object.data\n",
" with tempfile.NamedTemporaryFile(delete=False, suffix=\".svg\") as tmpfile:\n",
" tmpfile.write(svg_data.encode(\"utf-8\"))\n",
" return tmpfile.name\n",
Expand All @@ -85,8 +85,6 @@
"from pdf2image import convert_from_path\n",
"\n",
"\n",
"\n",
"\n",
"def pdf_to_images(pdf_path, dpi=900):\n",
" \"\"\"\n",
" Converts PDFs to images with an option to specify the DPI for higher quality.\n",
Expand Down Expand Up @@ -198,7 +196,9 @@
"\n",
"\n",
"titles = [\"A\", \"B\", \"C\"]\n",
"display_images_in_subplot(images, _its, _rc, titles, save_path=\"./fig/Fig1_old_aam_its_rc.pdf\")"
"display_images_in_subplot(\n",
" images, _its, _rc, titles, save_path=\"./fig/Fig1_old_aam_its_rc.pdf\"\n",
")"
]
},
{
Expand Down
8 changes: 6 additions & 2 deletions Docs/Analysis/_2b_aam_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,9 @@
"sys.path.append(\"../../\")\n",
"from syntemp.SynUtils.utils import load_database\n",
"\n",
"data = load_database(\"../../Data/AAM/results_benchmark/golden/golden_aam_reactions.json.gz\")"
"data = load_database(\n",
" \"../../Data/AAM/results_benchmark/golden/golden_aam_reactions.json.gz\"\n",
")"
]
},
{
Expand Down Expand Up @@ -582,7 +584,9 @@
"sys.path.append(\"../../\")\n",
"from syntemp.SynUtils.utils import load_database\n",
"\n",
"final_df = pd.DataFrame(load_database(\"../../Data/AAM/results_benchmark/aam_benchmark.json.gz\"))"
"final_df = pd.DataFrame(\n",
" load_database(\"../../Data/AAM/results_benchmark/aam_benchmark.json.gz\")\n",
")"
]
},
{
Expand Down
Loading

0 comments on commit 7d43a9c

Please sign in to comment.