def calculate_graphsize(args, graphtype, multiplier=1.0):
 if (graphtype not in khmer._buckets_per_byte):
  raise ValueError((u'unknown graph type: ' + graphtype))
 if args.max_memory_usage:
  tablesize = (((khmer._buckets_per_byte[graphtype] * args.max_memory_usage) / args.n_tables) / float(multiplier))
 else:
  tablesize = args.max_tablesize
 return tablesize

def calculate_graphsize ( args , graphtype , multiplier = 1.0 ) : if ( graphtype not in khmer . _buckets_per_byte ) : raise ValueError ( ( u'unknown graph type: ' + graphtype ) ) if args . max_memory_usage : tablesize = ( ( ( khmer . _buckets_per_byte [ graphtype ] * args . max_memory_usage ) / args . n_tables ) / float ( multiplier ) ) else : tablesize = args . max_tablesize return tablesize
transform the table parameters into a size .