We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3126b37 commit a845f88Copy full SHA for a845f88
src/ReusableFunctions.jl
@@ -39,7 +39,6 @@ import JLD2
39
import FileIO
40
import DataStructures
41
import Compat
42
-import Suppressor
43
import Compat.String
44
45
"Reset restarts counter"
@@ -77,9 +76,11 @@ end
77
76
78
"Load JLD result file"
79
function loadresultfile(filename::String; key::String="result")
+ if !isfile(filename)
80
+ return nothing
81
+ end
82
try
- @Suppressor.suppress result = FileIO.load(filename, key)
- return result
83
+ return FileIO.load(filename, key)
84
catch
85
return nothing
86
end
0 commit comments