util module

util.powerise10(x)[source]

Return x as a * 10 ^ b with 1 <= a <10

util.eng(x)[source]

Return a string representing x in an engineer-friendly notation

util.silent_remove(filename)[source]

If filename exists, delete it. Otherwise, return nothing. See http://stackoverflow.com/q/10840533/2823213.

util.timestamp_temp_filename(suffix, random_length=6)[source]

Intented as a random, temporary filename

util.infer_timestep(x)[source]