Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
OpenFold
Commits
95c83ae1
Commit
95c83ae1
authored
Aug 12, 2022
by
Brian Loyal
Browse files
Bug fix
parent
32dd89bb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
run_pretrained_openfold.py
run_pretrained_openfold.py
+3
-2
No files found.
run_pretrained_openfold.py
View file @
95c83ae1
...
@@ -509,12 +509,13 @@ def update_timings(dict, output_file=os.path.join(os.getcwd(), "timings.json")):
...
@@ -509,12 +509,13 @@ def update_timings(dict, output_file=os.path.join(os.getcwd(), "timings.json")):
import
json
import
json
if
os
.
path
.
exists
(
output_file
):
if
os
.
path
.
exists
(
output_file
):
with
open
(
output_file
,
"r"
)
as
f
:
with
open
(
output_file
,
"r"
)
as
f
:
timings
=
json
.
loads
(
f
)
if
f
:
timings
=
json
.
load
(
f
)
else
:
else
:
timings
=
{}
timings
=
{}
timings
.
update
(
dict
)
timings
.
update
(
dict
)
with
open
(
output_file
,
"w"
)
as
f
:
with
open
(
output_file
,
"w"
)
as
f
:
timings
.
dumps
(
f
)
json
.
dump
(
timings
,
f
)
return
output_file
return
output_file
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment