Skip to content

Commit ae7ce5c

Browse files
committed
Uncomment Example VFS Code
1 parent fb52265 commit ae7ce5c

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

examples/vfs.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -80,20 +80,20 @@ def write():
8080
f = vfs.open("tiledb_vfs.bin", "wb")
8181

8282
# # Write binary data
83-
# vfs.write(f, struct.pack("f", 153.0))
84-
# vfs.write(f, "abcd".encode("utf-8"))
85-
# vfs.close(f)
83+
vfs.write(f, struct.pack("f", 153.0))
84+
vfs.write(f, "abcd".encode("utf-8"))
85+
vfs.close(f)
8686

87-
# # Write binary data again - this will overwrite the previous file
88-
# f = vfs.open("tiledb_vfs.bin", "wb")
89-
# vfs.write(f, struct.pack("f", 153.1))
90-
# vfs.write(f, "abcdef".encode("utf-8"))
91-
# vfs.close(f)
87+
# Write binary data again - this will overwrite the previous file
88+
f = vfs.open("tiledb_vfs.bin", "wb")
89+
vfs.write(f, struct.pack("f", 153.1))
90+
vfs.write(f, "abcdef".encode("utf-8"))
91+
vfs.close(f)
9292

93-
# # Append binary data to existing file (this will NOT work on S3)
94-
# f = vfs.open("tiledb_vfs.bin", "ab")
95-
# vfs.write(f, "ghijkl".encode("utf-8"))
96-
# vfs.close(f)
93+
# Append binary data to existing file (this will NOT work on S3)
94+
f = vfs.open("tiledb_vfs.bin", "ab")
95+
vfs.write(f, "ghijkl".encode("utf-8"))
96+
vfs.close(f)
9797

9898

9999
def read():
@@ -111,4 +111,4 @@ def read():
111111

112112
dirs_files()
113113
write()
114-
# read()
114+
read()

0 commit comments

Comments
 (0)