Skip to content

Commit

Permalink
update config_manager.py and test_full.py
Browse files Browse the repository at this point in the history
  • Loading branch information
benmalef committed Feb 12, 2025
1 parent dae6c1e commit 17c1d6d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion GANDLF/config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,3 @@ def ConfigManager(
# f"gandlf config parsing failed: {config_file_path=}, {version_check_flag=}, Exception: {str(e)}, {traceback.format_exc()}"
# )
# raise

3 changes: 1 addition & 2 deletions testing/test_full.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import logging
import json

from pydantic import ValidationError
from pydicom.data import get_testdata_file
import cv2

Expand Down Expand Up @@ -1120,7 +1119,7 @@ def test_train_normtype_segmentation_rad_3d(device):
for norm_type in ["none", None]:
parameters["model"]["norm_type"] = norm_type
file_config_temp = write_temp_config_path(parameters)
with pytest.raises(ValidationError) as exc_info:
with pytest.raises(Exception) as exc_info:
parameters = ConfigManager(file_config_temp, version_check_flag=False)

print("Exception raised:", exc_info.value)
Expand Down

0 comments on commit 17c1d6d

Please sign in to comment.