<s> import numpy as np <EOL> import tables <EOL> fileh = tables . open_file ( "<STR_LIT>" , mode = "<STR_LIT:w>" , <EOL> title = "<STR_LIT>" ) <EOL> root = fileh . root <EOL> a = np . array ( [ <NUM_LIT:1> , <NUM_LIT:2> , <NUM_LIT:4> ] , np . int32 ) <EOL> hdfarray = fileh . create_array ( root , '<STR_LIT>' , a , "<STR_LIT>" ) <EOL> hdfarray . attrs . string = "<STR_LIT>" <EOL> hdfarray . attrs . char = "<STR_LIT:1>" <EOL> hdfarray . attrs . int = <NUM_LIT:12> <EOL> hdfarray . attrs . float = <NUM_LIT> <EOL> hdfarray . attrs . object = { "<STR_LIT:a>" : <NUM_LIT> , "<STR_LIT:b>" : <NUM_LIT:1> , "<STR_LIT:c>" : [ <NUM_LIT:1> , <NUM_LIT:2> ] } <EOL> fileh . close ( ) </s>
