[CI][RFC] Replace black-jupyter with ruff-format (#37210)
Co-authored-by: Alison Shao <a.shao@wustl.edu>
This commit is contained in:
co-authored by
Alison Shao
parent
2641e427be
commit
28262c20df
@@ -77,9 +77,9 @@ class DumpLoader:
|
||||
step = dumper._state.step
|
||||
conditions = dict(name=name, step=step, **kwargs)
|
||||
row = find_row(self._df, conditions=conditions)
|
||||
assert (
|
||||
row is not None
|
||||
), f"DumpLoader cannot find row given query {name=} {kwargs=} {self._directory=}"
|
||||
assert row is not None, (
|
||||
f"DumpLoader cannot find row given query {name=} {kwargs=} {self._directory=}"
|
||||
)
|
||||
|
||||
path = self._directory / row["filename"]
|
||||
output = torch.load(path, weights_only=False)
|
||||
|
||||
Reference in New Issue
Block a user