File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ def __init__(
33
33
self .cwd = cwd
34
34
self .share = share
35
35
36
+ self .filename = None
37
+ self .extension = None
38
+
36
39
self .class_name = "airways" # default
37
40
self .class_names = {
38
41
"airways" : "CT_Airways" ,
@@ -102,10 +105,11 @@ def process(self, mesh_file_name):
102
105
return "./prediction.obj"
103
106
104
107
def download_prediction (self ):
105
- if (not self .filename ) or (not self .extension ):
108
+ if (self .filename is None ) or (self .extension is None ):
106
109
LOGGER .error (
107
110
"The prediction is not available or ready to download. Wait until the result is available in the 3D viewer."
108
111
)
112
+ raise ValueError ("Run inference before downloading!" )
109
113
return self .filename + "." + self .extension
110
114
111
115
def get_img_pred_pair (self , k ):
You can’t perform that action at this time.
0 commit comments