crunchflow.util

Various utilities for working with CrunchFlow files.

Functions

correct_exponent(filename[, folder, verbose])

Correct triple digit exponents within a file. CrunchFlow

Module Contents

crunchflow.util.correct_exponent(filename, folder='.', verbose='med')[source]

Correct triple digit exponents within a file. CrunchFlow has trouble outputting triple-digit exponents and omits the ‘E’. For example, ‘2.5582E-180’ prints as ‘2.5582-180’.

Parameters:
filenamestr

name of the file to be processed

folderstr

folder containing the file, either relative or absolute path

verbose{‘med’, ‘high’, ‘low’}

Print each correction as it’s performed (‘high’), print total number of corrections (‘med’), or print nothing (‘low’). The default is ‘med’

Returns:
None. Modifies the file in place.