Versions in this module Expand all Collapse all v0 v0.2.6 Feb 27, 2023 Changes in this version + func MaterializeAll(ins []Promise, maxThreads int, forget bool) (outs []*fits.Image, err error) + func RemoveNils(lights []*fits.Image) []*fits.Image + func SetOperatorFactory(f OperatorFactory) + type Context struct + DarkFrame *fits.Image + FlatFrame *fits.Image + LSEstimatorMode stats.LSEstimatorMode + Log io.Writer + LumFrame *fits.Image + MaxThreads int + MemoryMB int + RefFrame *fits.Image + RefFrameError error + StackMemoryMB int + func NewContext(log io.Writer, lsEstimatorMode stats.LSEstimatorMode) *Context + type OpBase struct + Type string + func (op *OpBase) GetType() string + type OpLoad struct + FileName string + ID int + func NewOpLoad(id int, fileName string) *OpLoad + func NewOpLoadDefault() *OpLoad + func (op *OpLoad) Apply(f *fits.Image, c *Context) (result *fits.Image, err error) + func (op *OpLoad) MakePromises(ins []Promise, c *Context) (outs []Promise, err error) + func (op *OpLoad) UnmarshalJSON(data []byte) error + type OpLoadMany struct + FilePatterns []string + func NewOpLoadMany(filePatterns []string) *OpLoadMany + func NewOpLoadManyDefault() *OpLoadMany + func (op *OpLoadMany) MakePromises(ins []Promise, c *Context) (outs []Promise, err error) + func (op *OpLoadMany) UnmarshalJSON(data []byte) error + type OpSave struct + FilePattern string + func NewOpSave(filenamePattern string) *OpSave + func NewOpSaveDefault() *OpSave + func (op *OpSave) Apply(f *fits.Image, c *Context) (result *fits.Image, err error) + func (op *OpSave) UnmarshalJSON(data []byte) error + type OpSequence struct + Steps []Operator + StepsRaw []json.RawMessage + func NewOpSequence(steps ...Operator) *OpSequence + func NewOpSequenceDefault() *OpSequence + func (op *OpSequence) Append(steps ...Operator) + func (op *OpSequence) MakePromises(ins []Promise, c *Context) (outs []Promise, err error) + func (op *OpSequence) MarshalJSON() (bs []byte, err error) + func (op *OpSequence) UnmarshalJSON(b []byte) error + type OpUnaryBase struct + Apply func(f *fits.Image, c *Context) (fOut *fits.Image, err error) + func (op *OpUnaryBase) MakePromise(in Promise, c *Context) (out Promise) + func (op *OpUnaryBase) MakePromises(ins []Promise, c *Context) (outs []Promise, err error) + type Operator interface + GetType func() string + MakePromises func(ins []Promise, c *Context) (outs []Promise, err error) + type OperatorFactory func() Operator + func GetOperatorFactory(t string) OperatorFactory + type OperatorUnary interface + Apply func(f *fits.Image, c *Context) (fOut *fits.Image, err error) + type Promise func() (f *fits.Image, err error)