screamer.js
    Preparing search index...

    Type Alias ScreamerOp

    type ScreamerOp = {
        numInputs: number;
        numOutputs: number;
        "[dispose]"(): void;
        dispose(): void;
        dumps(format?: "json"): string;
        dumps(format: "cbor"): Uint8Array;
        reset(): void;
        resume(...inputs: any[]): any;
        save(path: string): Promise<void>;
        setState(state: SaveState): void;
        settings(): Record<string, unknown>;
        state(): SaveState;
        (...args: any[]): any;
    }
    • Parameters

      • ...args: any[]

      Returns any

    Index
    numInputs: number

    Number of input fields per event (Python's num_inputs).

    numOutputs: number

    Number of output fields per event (Python's num_outputs).

    • The save file of the operator: JSON text, or the CBOR bytes for "cbor". loads reads it back. Python's dumps.

      Parameters

      • Optionalformat: "json"

      Returns string

    • Parameters

      • format: "cbor"

      Returns Uint8Array

    • A batch call that starts from the operator's state and keeps the end state, where a default batch call starts and ends reset. On a (T, K) array it keeps one state per column; a row op and PortfolioReport, one object for K assets, continue that state instead. Python's resume.

      Parameters

      • ...inputs: any[]

      Returns any

    • Writes the save file to path (Node): CBOR for a .cbor path, JSON otherwise.

      Parameters

      • path: string

      Returns Promise<void>

    • Loads a state that state() returned; one that does not fit raises and changes nothing.

      Parameters

      Returns void

    • The constructor arguments by their Python names; an optional one not given is null.

      Returns Record<string, unknown>