Skip to content

Commit 97823a3

Browse files
committed
Update nomenclature to disambiguate types of file mgrs
1 parent 4f47fc8 commit 97823a3

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

bossphorus/storagemanager/_FilesystemStorageManager.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from .utils import file_compute, blockfile_indices
2424

2525

26-
class FileInterface(ABC):
26+
class ChunkedFileInterface(ABC):
2727
"""
2828
A filesystem manager that handles transit from numpy in-memory to a
2929
static format on disk.
@@ -50,14 +50,14 @@ def retrieve(
5050
...
5151

5252

53-
class NpyFileInterface(FileInterface):
53+
class NpyChunkedFileInterface(ChunkedFileInterface):
5454
def __init__(self, storage_path: str, block_size):
5555
self.storage_path = storage_path
5656
self.block_size = block_size
5757
self.format_name = "NPY"
5858

59-
def __repr__(self):
60-
return f"<NpyFileInterface>"
59+
def __repr__(self):
60+
return f"<NpyChunkedFileInterface>"
6161

6262
def store(
6363
self,
@@ -120,14 +120,14 @@ def retrieve(
120120
return np.load(fname)
121121

122122

123-
class H5FileInterface(FileInterface):
123+
class H5ChunkedFileInterface(ChunkedFileInterface):
124124
def __init__(self, storage_path: str, block_size):
125125
self.storage_path = storage_path
126126
_ = block_size
127127
self.format_name = "h5"
128128

129129
def __repr__(self):
130-
return f"<H5FileInterface>"
130+
return f"<H5ChunkedFileInterface>"
131131

132132
def store(
133133
self,
@@ -189,7 +189,7 @@ def __init__(
189189
self.block_size = block_size
190190

191191
self.fs = (
192-
{"npy": NpyFileInterface, "h5": H5FileInterface}.get(
192+
{"npy": NpyChunkedFileInterface, "h5": H5ChunkedFileInterface}.get(
193193
kwargs.get("preferred_format", "npy"))
194194
)(self.storage_path, self.block_size)
195195

bossphorus/templates/home.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
line-height: 1.5em;
2323
}
2424

25+
td {
26+
padding: 0em 1.3em;
27+
min-width: 10em;
28+
}
29+
2530
table tr:nth-child(2n),
2631
thead {
2732
background: rgba(10, 10, 40, 0.05);

0 commit comments

Comments
 (0)