@@ -81,7 +81,7 @@ def read(cls, filename, package=None, replacements=None, model=None):
8181 keys = list (configs )
8282 if len (keys ) > 1 :
8383 raise ValueError (
84- f'Config yaml file contains unexpected sections:\n '
84+ f'Config yaml file contains unexpected sections: \n '
8585 f'{ keys [1 :]} ' )
8686 model = keys [0 ]
8787
@@ -200,11 +200,11 @@ def main_mpas_to_yaml():
200200 help = "MPAS namelist template file (with all namelist "
201201 "options). For MPAS-Ocean, this will typically be"
202202 " ${PATH_TO_MPASO}/default_inputs/"
203- "namelist.forward. ocean" )
203+ "namelist.ocean.forward " )
204204 parser .add_argument ("-y" , "--yaml" , dest = "yaml" ,
205205 required = True ,
206206 help = "Output yaml file" )
207- parser .add_argument ("-m" , "--model" , dest = "model" , default = 'omega ' ,
207+ parser .add_argument ("-m" , "--model" , dest = "model" , default = 'mpas-ocean ' ,
208208 help = "Model name for the yaml" )
209209
210210 args = parser .parse_args ()
@@ -286,7 +286,7 @@ def _update_section(src, dst, quiet, print_section=None):
286286 if name not in dst :
287287 raise ValueError (
288288 f'Attempting to modify a nonexistent config '
289- f'options:{ print_section } : { name } ' )
289+ f'options: { print_section } : { name } ' )
290290 if not quiet :
291291 print (f' { print_section } : { name } = { src [name ]} ' )
292292 dst [name ] = src [name ]
0 commit comments