Skip to content

Commit

Permalink
notebooks: fix issue where we didn't turn format string into object
Browse files Browse the repository at this point in the history
  • Loading branch information
pgunn committed Aug 6, 2024
1 parent 21fe61e commit abe767a
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion demos/notebooks/demo_OnACID_mesoscope.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"logfile = None # Replace with a path if you want to log to a file\n",
"logger = logging.getLogger('caiman')\n",
"logger.setLevel(logging.INFO)\n",
"logfmt = '%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s'\n",
"logfmt = logging.Formatter('%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s')\n",
"if logfile is not None:\n",
" handler = logging.FileHandler(logfile)\n",
"else:\n",
Expand Down
2 changes: 1 addition & 1 deletion demos/notebooks/demo_Ring_CNN.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"logfile = None # Replace with a path if you want to log to a file\n",
"logger = logging.getLogger('caiman')\n",
"logger.setLevel(logging.INFO)\n",
"logfmt = '%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s'\n",
"logfmt = logging.Formatter('%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s')\n",
"if logfile is not None:\n",
" handler = logging.FileHandler(logfile)\n",
"else:\n",
Expand Down
2 changes: 1 addition & 1 deletion demos/notebooks/demo_VST.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"logfile = None # Replace with a path if you want to log to a file\n",
"logger = logging.getLogger('caiman')\n",
"logger.setLevel(logging.INFO)\n",
"logfmt = '%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s'\n",
"logfmt = logging.Formatter('%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s')\n",
"if logfile is not None:\n",
" handler = logging.FileHandler(logfile)\n",
"else:\n",
Expand Down
2 changes: 1 addition & 1 deletion demos/notebooks/demo_caiman_cnmf_3D.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"logfile = None # Replace with a path if you want to log to a file\n",
"logger = logging.getLogger('caiman')\n",
"logger.setLevel(logging.INFO)\n",
"logfmt = '%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s'\n",
"logfmt = logging.Formatter('%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s')\n",
"if logfile is not None:\n",
" handler = logging.FileHandler(logfile)\n",
"else:\n",
Expand Down
2 changes: 1 addition & 1 deletion demos/notebooks/demo_dendritic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
" log_file = None\n",
"logger = logging.getLogger('caiman')\n",
"logger.setLevel(logging.INFO)\n",
"logfmt = '%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s'\n",
"logfmt = logging.Formatter('%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s')\n",
"if log_file is not None:\n",
" handler = logging.FileHandler(log_file)\n",
"else:\n",
Expand Down
2 changes: 1 addition & 1 deletion demos/notebooks/demo_motion_correction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"logfile = None # Replace with a path if you want to log to a file\n",
"logger = logging.getLogger('caiman')\n",
"logger.setLevel(logging.INFO)\n",
"logfmt = '%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s'\n",
"logfmt = logging.Formatter('%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s')\n",
"if logfile is not None:\n",
" handler = logging.FileHandler(logfile)\n",
"else:\n",
Expand Down
2 changes: 1 addition & 1 deletion demos/notebooks/demo_online_3D.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"logfile = None # Replace with a path if you want to log to a file\n",
"logger = logging.getLogger('caiman')\n",
"logger.setLevel(logging.WARNING)\n",
"logfmt = '%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s'\n",
"logfmt = logging.Formatter('%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s')\n",
"if logfile is not None:\n",
" handler = logging.FileHandler(logfile)\n",
"else:\n",
Expand Down
2 changes: 1 addition & 1 deletion demos/notebooks/demo_online_cnmfE.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"logfile = None # Replace with a path if you want to log to a file\n",
"logger = logging.getLogger('caiman')\n",
"logger.setLevel(logging.WARNING)\n",
"logfmt = '%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s'\n",
"logfmt = logging.Formatter('%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s')\n",
"if logfile is not None:\n",
" handler = logging.FileHandler(logfile)\n",
"else:\n",
Expand Down
2 changes: 1 addition & 1 deletion demos/notebooks/demo_pipeline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"logfile = None # Replace with a path if you want to log to a file\n",
"logger = logging.getLogger('caiman')\n",
"logger.setLevel(logging.WARNING)\n",
"logfmt = '%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s'\n",
"logfmt = logging.Formatter('%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s')\n",
"if logfile is not None:\n",
" handler = logging.FileHandler(logfile)\n",
"else:\n",
Expand Down
2 changes: 1 addition & 1 deletion demos/notebooks/demo_pipeline_cnmfE.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"logfile = None # Replace with a path if you want to log to a file\n",
"logger = logging.getLogger('caiman')\n",
"logger.setLevel(logging.WARNING)\n",
"logfmt = '%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s'\n",
"logfmt = logging.Formatter('%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s')\n",
"if logfile is not None:\n",
" handler = logging.FileHandler(logfile)\n",
"else:\n",
Expand Down
2 changes: 1 addition & 1 deletion demos/notebooks/demo_pipeline_voltage_imaging.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"logfile = None # Replace with a path if you want to log to a file\n",
"logger = logging.getLogger('caiman')\n",
"logger.setLevel(logging.ERROR)\n",
"logfmt = '%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s'\n",
"logfmt = logging.Formatter('%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s')\n",
"if logfile is not None:\n",
" handler = logging.FileHandler(logfile)\n",
"else:\n",
Expand Down
2 changes: 1 addition & 1 deletion demos/notebooks/demo_realtime_cnmfE.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"logfile = None # Replace with a path if you want to log to a file\n",
"logger = logging.getLogger('caiman')\n",
"logger.setLevel(logging.WARNING)\n",
"logfmt = '%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s'\n",
"logfmt = logging.Formatter('%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s')\n",
"if logfile is not None:\n",
" handler = logging.FileHandler(logfile)\n",
"else:\n",
Expand Down
2 changes: 1 addition & 1 deletion demos/notebooks/demo_seeded_CNMF.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"logfile = None # Replace with a path if you want to log to a file\n",
"logger = logging.getLogger('caiman')\n",
"logger.setLevel(logging.WARNING)\n",
"logfmt = '%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s'\n",
"logfmt = logging.Formatter('%(relativeCreated)12d [%(filename)s:%(funcName)20s():%(lineno)s] [%(process)d] %(message)s')\n",
"if logfile is not None:\n",
" handler = logging.FileHandler(logfile)\n",
"else:\n",
Expand Down

0 comments on commit abe767a

Please sign in to comment.