NoticeFile¶
- class hoomd.device.NoticeFile(device, level=1)¶
A file-like object that writes to a
Device
notice stream.- Parameters:
Example:
notice_file = hoomd.device.NoticeFile(device=device)
Note
Use this in combination with
Device.message_filename
to combine notice messages with output from code that expects file-like objects (such ashoomd.write.Table
).- flush()¶
Flush the output.
- writable()¶
Provide file-like API call writable.