<s> """<STR_LIT>""" <EOL> import argparse <EOL> import os <EOL> import h5py <EOL> message_prefix_template = '<STR_LIT>' <EOL> message_body_template = """<STR_LIT>""" <EOL> def main ( args = None ) : <EOL> """<STR_LIT>""" <EOL> parser = argparse . ArgumentParser ( <EOL> description = '<STR_LIT>' ) <EOL> parser . add_argument ( "<STR_LIT:filename>" , help = "<STR_LIT>" ) <EOL> args = parser . parse_args ( ) <EOL> with h5py . File ( args . filename , '<STR_LIT:r>' ) as h5file : <EOL> interface_version = h5file . attrs . get ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> fuel_convert_version = h5file . attrs . get ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> fuel_convert_command = h5file . attrs . get ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> message_prefix = message_prefix_template . format ( <EOL> os . path . basename ( args . filename ) ) <EOL> message_body = message_body_template . format ( <EOL> fuel_convert_command , interface_version , fuel_convert_version ) <EOL> message = '<STR_LIT>' . join ( [ '<STR_LIT:\n>' , message_prefix , '<STR_LIT:\n>' , '<STR_LIT:=>' * len ( message_prefix ) , <EOL> message_body ] ) <EOL> print ( message ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> main ( ) </s>
