Skip to content

Bohrium API: supply a way to check if an array needs to be flushed #625

@dionhaefner

Description

@dionhaefner

Could be helpful for smart __repr__s:

>>> a = bh107.random.rand(2, 2)
>>> b = bh107.random.rand(2, 2)
>>> c = a + b
>>> c  # results are not computed yet
BhArray([[- -],
         [- -]])
>>> bh107.flush()
>>> c
BhArray([[1 2],
         [3 4]])

I think this would be nice sugar to help people understand what's going on inside Bohrium.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions