@@ -341,14 +341,14 @@ def create_default_pystepsrc(pysteps_data_dir, config_dir=None, file_name="pyste
341
341
"""
342
342
Create a default configuration file pointing to the pysteps data directory.
343
343
344
- If the configuration file already exists, it backup the existing file by appending
345
- to the filename the extensions '.1', '.2', up to '.5.'.
344
+ If the configuration file already exists, it will backup the existing file by
345
+ appending the extensions '.1', '.2', up to '.5.' to the filename .
346
346
A maximum of 5 files are kept. .2, up to app.log.5.
347
347
348
348
File rotation is implemented for the backup files.
349
349
For example, if the default configuration filename is 'pystepsrc' and the files
350
- pystepsrc, pystepsrc.1, pystepsrc.2, etc. exist, they are renamed to pystepsrc.1,
351
- pystepsrc.2 , pystepsrc.2, etc. respectively . Finally, after the existing files are
350
+ pystepsrc, pystepsrc.1, pystepsrc.2, etc. exist, they are renamed to respetively
351
+ pystepsrc.1 , pystepsrc.2, pystepsrc.2, etc . Finally, after the existing files are
352
352
backed up, the new configuration file is written.
353
353
354
354
Parameters
@@ -367,7 +367,7 @@ def create_default_pystepsrc(pysteps_data_dir, config_dir=None, file_name="pyste
367
367
Configuration file name. `pystepsrc` by default.
368
368
369
369
dryrun : bool
370
- Do not create the parameters file nor create backups of existing files.
370
+ Do not create the parameter file, nor create backups of existing files.
371
371
No changes are made in the file system. It just returns the file path.
372
372
373
373
Returns
0 commit comments