File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
notebooks/ccdc_notebook_utilities Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ def create_logger(verbose=True):
1818 """
1919 From inside a notebook, create a logger and log starting information
2020 """
21-
21+
2222 logger = logging .getLogger (__name__ )
2323 handler = logging .StreamHandler ()
2424 handler .setFormatter (logging .Formatter ('[%(asctime)s %(levelname)-7s] %(message)s' , datefmt = '%y-%m-%d %H:%M:%S' ))
Original file line number Diff line number Diff line change 1313from platform import platform
1414from subprocess import Popen
1515
16+
1617def run_hermes (* filenames ):
1718 """
1819 From inside a notebook, run CCDC Hermes utility or fail if we cant find it. Assumes the
1920 software is installed alongside the data folder currently.
2021 """
21-
22-
22+
2323 try :
2424 hermes_dir = Path (csd_directory ()) / '..' / '..' / 'ccdc-software' / 'hermes'
2525 hermes_exe = (hermes_dir / 'hermes.exe' if platform ().startswith ('Windows' ) else hermes_dir / 'hermes' ).as_posix ()
2626 _ = Popen ([hermes_exe , * filenames ], creationflags = 0x00000008 )
2727 except Exception as e :
28- print ( f"Couldnt run Hermes { e } " )
28+ print (f"Couldnt run Hermes { e } " )
You can’t perform that action at this time.
0 commit comments