dwavesystems / dwavesystems/dimod

`BQM.into_file` or similar

Open
#899 4 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
143
Forks
91
Avg merge
1h 24m
Merged PRs (30d)
3

Description

Right now this can be done with
```
with open(.., 'wb') as f:
shutil.copyfileobj(bqm.to_file(), f)
```
but it would be nice to be able to just do
```
with open(.., 'wb') as f:
bqm.into_file(f)
```
and avoid the creation and copy of the intermediate file.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.