Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dionhaefner opened this issue Jun 3, 2019 · 0 comments
Open

Comments

@dionhaefner
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant