Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Liang <ekhliang@gmail.com>
  • Loading branch information
ericl committed Aug 24, 2023
1 parent 597194d commit 44ebf99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions python/ray/air/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ def _repr(self, indent: int = 0) -> str:
else:
shown_attributes.pop("error")

if isinstance(shown_attributes["filesystem"], pyarrow.fs.LocalFileSystem):
shown_attributes["filesystem"] = "local"
shown_attributes["filesystem"] = shown_attributes["filesystem"].type_name

if self.metrics:
exclude = set(AUTO_RESULT_KEYS)
Expand Down
4 changes: 2 additions & 2 deletions python/ray/tune/tests/test_result_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,14 @@ class MockExperimentAnalysis:
Result(
metrics={'loss': 1.0},
path='log_1',
filesystem=local,
filesystem='local',
checkpoint=Checkpoint(filesystem=local, path=/tmp/ckpt1)
),
Result(
error='RuntimeError',
metrics={'loss': 2.0},
path='log_2',
filesystem=local,
filesystem='local',
checkpoint=Checkpoint(filesystem=local, path=/tmp/ckpt2)
)
]>"""
Expand Down

0 comments on commit 44ebf99

Please sign in to comment.