The AEI.write interface currently requires the use of BinaryIO. A convenience method where we only need to pass a file path string/pathlike would be very nice.
This method shouldn't return anything, since the 'output' of the method is a file on disk; the following doesn't make sense:
out = aei.write("myfile.aei")
out.close()
with aei.write("myfile.aei"):
pass
The
AEI.write
interface currently requires the use ofBinaryIO
. A convenience method where we only need to pass a file path string/pathlike would be very nice.This method shouldn't return anything, since the 'output' of the method is a file on disk; the following doesn't make sense:
A new method seems to make the most sense:
The return value can be the number of bytes written. Internally, this method can just wrap
AEI.write
in awith BytesIO(path)
.