next up previous contents index
Next: modfile.delete() delete Up: The modfile module: handling Previous: The modfile module: handling   Contents   Index

modfile.default() -- generate an `automatic' filename

root_name = <str:1>   filename root
file_id = <str:1>   file type
id1 = <int:1>   first numeric ID
id2 = <int:1>   second numeric ID
file_ext = <str:1>   filename extension

Description:
This returns a generated file name, as (root_name)(file_id)(id1)(id2)(file_ext), where id1 and id2 are printed as 4-digit numbers, padded with zeroes if necessary. For example, '2ptn.B99990001.pdb' results from root_name = '2ptn', file_id = '.B', id1 = 9999, id2 = 1, and file_ext = '.pdb'. This mimics the `automatic' filename generation of previous versions of MODELLER when filenames were set to 'default' or '${DEFAULT}'.



Ben Webb 2006-02-28