We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
save_model
1 parent c9c49db commit ea6f24eCopy full SHA for ea6f24e
src/capymoa/misc.py
@@ -55,8 +55,6 @@ def save_model(model: object, file: BinaryIO) -> None:
55
:param model: A python object optionally containing Java objects.
56
:param file: The file-like object to save the model to.
57
"""
58
- if not isinstance(file, (RawIOBase, BufferedIOBase)):
59
- raise ValueError("File must be opened in binary mode.")
60
if not file.writable():
61
raise ValueError("File must be writable.")
62
JPickler(file).dump(model)
0 commit comments