SpecreduceOperation

class specreduce.SpecreduceOperation[source]

Bases: _ImageParser

An operation to perform as part of a spectroscopic reduction pipeline.

This class primarily exists to define the basic API for operations: parameters for the operation are provided at object creation, and then the operation object is called with the data objects required for the operation, which then return the data objects resulting from the operation.

Methods Summary

__call__()

Call self as a function.

as_function(*args, **kwargs)

Run this operation as a function.

Methods Documentation

__call__()[source]

Call self as a function.

classmethod as_function(*args, **kwargs)[source]

Run this operation as a function. Syntactic sugar for e.g., Operation.as_function(arg1, arg2, keyword=value) maps to Operation(arg2, keyword=value)(arg1) (if the __call__ of Operation has only one argument)