@@ -102,7 +102,7 @@ def _greet():
102102 with open (logo_path , "r" , encoding = "ascii" ) as f :
103103 print (f .read ())
104104 title_str = f"Dynophores CLI { _version .get_versions ()['version' ]} "
105- print (f"\n { title_str :^64} " )
105+ print (f"\n { title_str : ^64} " )
106106
107107
108108def _create_viz (args ):
@@ -114,16 +114,16 @@ def _create_viz(args):
114114
115115 dyno_path = Path (args .dyno )
116116 if not dyno_path .is_dir ():
117- raise RuntimeError (f"Input is no file or file does not exist: ` { dyno_path .absolute ()} ` " )
117+ raise RuntimeError (f"Input is no file or file does not exist: { dyno_path .absolute ()} " )
118118
119119 pdb_path = Path (args .pdb )
120120 if not pdb_path .is_file ():
121- raise RuntimeError (f"Input is no file or file does not exist: ` { pdb_path .absolute ()} ` " )
121+ raise RuntimeError (f"Input is no file or file does not exist: { pdb_path .absolute ()} " )
122122
123123 if args .dcd is not None :
124124 dcd_path = Path (args .dcd )
125125 if not dcd_path .is_file ():
126- raise RuntimeError (f"Input is no file or file does not exist: ` { dcd_path .absolute ()} ` " )
126+ raise RuntimeError (f"Input is no file or file does not exist: { dcd_path .absolute ()} " )
127127 else :
128128 dcd_path = None
129129
@@ -168,8 +168,8 @@ def _copy_notebook(new_notebook_path):
168168 new_notebook_path = Path (new_notebook_path )
169169 if new_notebook_path .suffix != ".ipynb" :
170170 raise RuntimeError (
171- f"Input file path must have suffix ` .ipynb` . "
172- f"Your input: ` { new_notebook_path .absolute ()} ` "
171+ f"Input file path must have suffix .ipynb. "
172+ f"Your input: { new_notebook_path .absolute ()} "
173173 )
174174 if not new_notebook_path .exists ():
175175 new_notebook_path .parent .mkdir (parents = True , exist_ok = True )
@@ -179,16 +179,16 @@ def _copy_notebook(new_notebook_path):
179179 print ("\n Copy dynophore notebook to user workspace..." )
180180 copyfile (template_notebook_path , new_notebook_path )
181181 if new_notebook_path .exists ():
182- print (f"Dynophore notebook location: ` { new_notebook_path .absolute ()} ` " )
182+ print (f"Dynophore notebook location: { new_notebook_path .absolute ()} " )
183183 else :
184184 raise RuntimeError (
185185 f"Could not create dynophore notebook at selected location "
186- f"` { new_notebook_path .absolute ()} ` "
186+ f"{ new_notebook_path .absolute ()} "
187187 )
188188 else :
189189 raise RuntimeError (
190190 f"Could not find dynophore notebook at expected location "
191- f"` { template_notebook_path .absolute ()} ` ."
191+ f"{ template_notebook_path .absolute ()} ."
192192 )
193193
194194
@@ -200,20 +200,20 @@ def _update_paths_in_notebook(notebook_path, dyno_path, pdb_path, dcd_path=None)
200200
201201 notebook_path = Path (notebook_path )
202202 if not notebook_path .is_file ():
203- raise RuntimeError (f"Input is no file or does not exist: ` { notebook_path .absolute ()} ` " )
203+ raise RuntimeError (f"Input is no file or does not exist: { notebook_path .absolute ()} " )
204204
205205 dyno_path = Path (dyno_path )
206206 if not dyno_path .is_dir ():
207- raise RuntimeError (f"Input is no file or file does not exist: ` { dyno_path .absolute ()} ` " )
207+ raise RuntimeError (f"Input is no file or file does not exist: { dyno_path .absolute ()} " )
208208
209209 pdb_path = Path (pdb_path )
210210 if not pdb_path .is_file ():
211- raise RuntimeError (f"Input is no file or file does not exist: ` { pdb_path .absolute ()} ` " )
211+ raise RuntimeError (f"Input is no file or file does not exist: { pdb_path .absolute ()} " )
212212
213213 if dcd_path is not None :
214214 dcd_path = Path (dcd_path )
215215 if not dcd_path .is_file ():
216- raise RuntimeError (f"Input is no file or file does not exist: ` { dcd_path .absolute ()} ` " )
216+ raise RuntimeError (f"Input is no file or file does not exist: { dcd_path .absolute ()} " )
217217
218218 # Replace template filepaths in notebook with user-defined filepaths
219219 print ("\n Update filepaths in notebook to user filepaths..." )
@@ -260,12 +260,12 @@ def _open_notebook(notebook_path):
260260 notebook_path = Path (notebook_path )
261261
262262 if not notebook_path .exists ():
263- raise RuntimeError (f"Input path does not exist: ` { notebook_path .absolute ()} ` " )
263+ raise RuntimeError (f"Input path does not exist: { notebook_path .absolute ()} " )
264264 if not notebook_path .is_file ():
265- raise RuntimeError (f"Input path is not a file: ` { notebook_path .absolute ()} ` " )
265+ raise RuntimeError (f"Input path is not a file: { notebook_path .absolute ()} " )
266266 if notebook_path .suffix != ".ipynb" :
267267 raise RuntimeError (
268- f"Input file path must have suffix ` .ipynb` . Your input: ` { notebook_path .absolute ()} ` "
268+ f"Input file path must have suffix .ipynb. Your input: { notebook_path .absolute ()} "
269269 )
270270
271271 print ("Open dynophore notebook with Jupyter Lab..." )
0 commit comments