File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -78,12 +78,12 @@ def write_res():
7878path_r = 'results/'
7979file_m = path_m + 'abq_' + ml_name + '-svm.csv'
8080if not os .path .isdir (path_m ):
81- raise NotADirectoryError ('Path ' + path_m + ' is not a directory.' )
81+ raise RunTimeError ('Path ' + path_m + ' is not a directory.' )
8282if not os .path .exists (file_m ):
83- raise FileNotFoundError ('Model file ' + file_m + ' not found.' )
83+ raise RunTimeError ('Model file ' + file_m + ' not found.' )
8484if not os .path .isdir (path_r ):
8585 if os .path .exists (path_r ):
86- raise NotADirectoryError ('Path ' + path_r + ' exists, but is not a directory.' )
86+ raise RunTimeError ('Path ' + path_r + ' exists, but is not a directory.' )
8787 else :
8888 os .mkdir (path_r )
8989
@@ -230,6 +230,6 @@ def write_res():
230230 with open (abq_job + '.inp' ,'w' ) as f :
231231 f .writelines (data )
232232
233- os .system ('abq6142 job={0} user={1} cpus={2} int' .format (abq_job ,abq_umat ,ncpu ))
233+ os .system ('abaqus job={0} user={1} cpus={2} int' .format (abq_job ,abq_umat ,ncpu ))
234234 write_res ()
235235 fclear ()
You can’t perform that action at this time.
0 commit comments