Skip to content

Commit

Permalink
Minor touchup
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrice Normandin <[email protected]>
  • Loading branch information
lebrice committed Jun 18, 2024
1 parent 5a9b70f commit aa1f6db
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions project/datamodules/datamodules_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@

import matplotlib.pyplot as plt
import pytest
from tensor_regression.fixture import TensorRegressionFixture, get_test_source_and_temp_file_paths
from tensor_regression.fixture import (
TensorRegressionFixture,
get_test_source_and_temp_file_paths,
)
from torch import Tensor

from project.utils.testutils import run_for_all_datamodules
Expand Down Expand Up @@ -68,7 +71,10 @@ def test_first_batch(

fig.suptitle(f"First batch of datamodule {type(datamodule).__name__}")
figure_path, _ = get_test_source_and_temp_file_paths(
extension=".png", request=request, original_datadir=original_datadir, datadir=datadir
extension=".png",
request=request,
original_datadir=original_datadir,
datadir=datadir,
)
figure_path.parent.mkdir(exist_ok=True, parents=True)
fig.savefig(figure_path)
Expand Down

0 comments on commit aa1f6db

Please sign in to comment.