isofit.core.isofit
- class Isofit(config_file, level='INFO', logfile=None)[source]
Bases:
object
Initialize the Isofit class.
- Parameters:
config_file – isofit configuration file in JSON or YAML format
level – logging level (ERROR, WARNING, INFO, DEBUG)
logfile – file to write output logs to
- run(row_column=None)[source]
Iterate over spectra, reading and writing through the IO object to handle formatting, buffering, and deferred write-to-file. Attempts to avoid reading the entire file into memory, or hitting the physical disk too often.
- row_column: The user can specify
a single number, in which case it is interpreted as a row
a comma-separated pair, in which case it is interpreted as a row/column tuple (i.e. a single spectrum)
a comma-separated quartet, in which case it is interpreted as a row, column range in the order (line_start, line_end, sample_start, sample_end) all values are inclusive.
If none of the above, the whole cube will be analyzed.