Skip to content

Commit

Permalink
Merge pull request #368 from asogaard/fix-unit-test
Browse files Browse the repository at this point in the history
Remove obsolete unit test
  • Loading branch information
asogaard authored Dec 7, 2022
2 parents b77b25c + 8462e25 commit 8247af1
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tests/models/test_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,3 @@ def test_transform_prediction_and_target() -> None:
transform_target=torch.log10,
transform_inference=torch.log10,
)

# Test wrong combination of inputs
with pytest.raises(
AssertionError,
match=(
"Please specify both `transform_inference` and `transform_target`"
),
):
EnergyReconstruction(
hidden_size=gnn.nb_outputs,
target_labels="energy",
loss_function=LogCoshLoss(),
transform_prediction_and_target=torch.log10,
transform_inference=torch.log10,
)

0 comments on commit 8247af1

Please sign in to comment.