Skip to content

Commit

Permalink
fix logging issue (if session was not restart between runs, log.txt w…
Browse files Browse the repository at this point in the history
…as not recreated)
  • Loading branch information
sokrypton committed Jul 20, 2023
1 parent f59147d commit 306d13c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions AlphaFold2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,10 @@
" plt.close()\n",
"\n",
"result_dir = jobname\n",
"if 'logging_setup' not in globals():\n",
" setup_logging(Path(os.path.join(jobname,\"log.txt\")))\n",
" logging_setup = True\n",
"log_filename = os.path.join(jobname,\"log.txt\")\n",
"if not os.path.isfile(log_filename) or 'logging_setup' not in globals():\n",
" setup_logging(Path(log_filename))\n",
" logging_setup = True\n",
"\n",
"queries, is_complex = get_queries(queries_path)\n",
"model_type = set_model_type(is_complex, model_type)\n",
Expand Down

0 comments on commit 306d13c

Please sign in to comment.