Skip to content

remove some leftover comments from development #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions tests/test_image_interpolation_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ def test_insert_into_image_2d_type_consistency(dtype):
image = torch.rand((4, 4), dtype=dtype)
coords = torch.tensor(np.random.uniform(low=0, high=3, size=(3, 4, 2)))
values = torch.rand(size=(3, 4), dtype=dtype)
# cast the dtype to corresponding float for weights
weights = torch.zeros_like(image, dtype=torch.float64)

for mode in ['bilinear', 'nearest']:
Expand All @@ -183,7 +182,6 @@ def test_insert_into_image_3d_type_error():
image = torch.rand((4, 4), dtype=torch.complex64)
coords = torch.tensor(np.random.uniform(low=0, high=3, size=(3, 4, 2)))
values = torch.rand(size=(3, 4), dtype=torch.complex128)
# cast the dtype to corresponding float for weights
with pytest.raises(ValueError):
insert_into_image_2d(
values,
Expand Down
2 changes: 0 additions & 2 deletions tests/test_image_interpolation_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ def test_insert_into_image_2d_type_consistency(dtype):
image = torch.rand((4, 4, 4), dtype=dtype)
coords = torch.tensor(np.random.uniform(low=0, high=3, size=(3, 4, 5, 3)))
values = torch.rand(size=(3, 4, 5), dtype=dtype)
# cast the dtype to corresponding float for weights
weights = torch.zeros_like(image, dtype=torch.float64)

for mode in ['bilinear', 'nearest']:
Expand All @@ -184,7 +183,6 @@ def test_insert_into_image_3d_type_error():
image = torch.rand((4, 4, 4), dtype=torch.complex64)
coords = torch.tensor(np.random.uniform(low=0, high=3, size=(3, 4, 5, 3)))
values = torch.rand(size=(3, 4, 5), dtype=torch.complex128)
# cast the dtype to corresponding float for weights
with pytest.raises(ValueError):
insert_into_image_3d(
values,
Expand Down