Skip to content

Commit

Permalink
fix: Add comment describing the test for when add_histogram should no…
Browse files Browse the repository at this point in the history
…t have been called
  • Loading branch information
iwishiwasaneagle committed Aug 31, 2023
1 parent 4386be5 commit 383ee76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,9 @@ def test_report_histogram_to_tensorboard(tmp_path, read_log, fail_first_write, h

@pytest.mark.parametrize("histogram", [list(np.random.rand(100)), tuple(np.random.rand(100)), "1 2 3 4"])
def test_report_unsupported_type_as_histogram_to_tensorboard(tmp_path, read_log, histogram):
"""
Check that other types aren't accidentally logged as a Histogram
"""
pytest.importorskip("tensorboard")

writer = make_output_format("tensorboard", tmp_path)
Expand Down

0 comments on commit 383ee76

Please sign in to comment.