Skip to content

Add callbacks #10

Open
Open
@jrbourbeau

Description

I'd like to add callback functionality to iterative_unfold. These Callback objects would be called after each iteration of unfolding. A couple I can think of off the top of my head are a callback for regularization and a callback for saving iteration info to disk.

Something like

from pyunfold import iterative_unfold, HDFLogger
# Set up callback
hdflogger = HDFLogger('/path/to/outputfile.hdf')
# Pass callback to iterative_unfold
unfolded_result = iterative_unfold(*, callbacks=[hdflogger])

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions