Skip to content

Suggestion: callback feature for learners (or runners) #192

Open
@emascot

Description

@emascot

I'm plotting a 2D Brillouin zone with C3 symmetry. Is there a way to add a callback so that after each point is calculated, I can "tell" the learner to add the same point and value but rotated?

I would like to add points and values after one has finished.
My idea was something like

def callback(learner, point, value):
    learner.tell(transform(point), value)
    ...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions