Skip to content

Commit 1b7dd1e

Browse files
committed
formatting changes
Signed-off-by: Danny Joca <[email protected]>
1 parent 83f9fd6 commit 1b7dd1e

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

tests/min_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def run_testsuit():
213213
"test_vista3d_utils",
214214
"test_vista3d_transforms",
215215
"test_matshow3d",
216-
"test_eq_feature"
216+
"test_eq_feature",
217217
]
218218
assert sorted(exclude_cases) == sorted(set(exclude_cases)), f"Duplicated items in {exclude_cases}"
219219

tests/test_eq_feature.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import torch
2020
from e3nn import o3
2121
from e3nn.nn import SO3Activation
22-
from tests.utils import testing_data_config, download_url_or_skip_test
22+
2323

2424
def s2_near_identity_grid(max_beta: float = math.pi / 8, n_alpha: int = 8, n_beta: int = 3) -> torch.Tensor:
2525
beta = torch.arange(1, n_beta + 1) * max_beta / n_beta
@@ -191,9 +191,11 @@ def load_nii_data(file_path, index, dimension):
191191

192192
return slice_2d
193193

194+
194195
def main():
195196
"""
196-
Equivariant feature extractor that loads in a 3D nii.gz image, extracts a single slice and pushes it through the equivariant network. The extracted features are printed to terminal.
197+
Equivariant feature extractor that loads in a 3D nii.gz image, extracts a single slice and
198+
pushes it through the equivariant network. The extracted features are printed to terminal.
197199
"""
198200
nii_file_path = "testing_data/source_0_0.nii.gz" # Path to the 3D .nii.gz file
199201
slice_index = 64 # Index of the slice to extract
@@ -209,10 +211,10 @@ def main():
209211
with torch.no_grad():
210212
features = model(input_slice)
211213

212-
print("Extracted features:", features) #print out extracted features from the equivariant filter
214+
print("Extracted features:", features) # print out extracted features from the equivariant filter
213215

214-
#Save features as .nii.gz files
215-
#save_features_as_nii(features, output_dir="nii_features")
216+
# Save features as .nii.gz files
217+
# save_features_as_nii(features, output_dir="nii_features")
216218

217219

218220
if __name__ == "__main__":

0 commit comments

Comments
 (0)