Inputs

chombopy.inputs.add_params(default_params, extra_params)[source]

Add params from extra_params to defaultParams

chombopy.inputs.array_to_string(array)[source]

Convert an array to a string with the elements separated by spaces i.e. [a,b,c] -> a b c

chombopy.inputs.is_power_of_two(n)[source]

Determine if a number if a power of 2

chombopy.inputs.isfloat(value)[source]

Determine if value is a float

chombopy.inputs.isint(value)[source]

Determines if value is an integer

chombopy.inputs.read_inputs(inputs_file)[source]

Load up an inputs file and parse it into a dictionary

chombopy.inputs.string_to_array(string, conversion=None)[source]

Convert a string separated by spaces to an array, i.e. a b c -> [a,b,c]

chombopy.inputs.write_inputs(location, params, ignore_list=None, do_sort=True)[source]

Write out a set of parameters to an inputs file