Skip to content

Commit

Permalink
added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AldovdN committed Jul 27, 2022
1 parent c04d581 commit 333c248
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cport/modules/scannet.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

# Total wait (seconds) = WAIT_INTERVAL * NUM_RETRIES
WAIT_INTERVAL = 30 # seconds
# any request should never take more than 15min so theoretical max is 90 retries
NUM_RETRIES = 36


Expand Down Expand Up @@ -133,6 +132,7 @@ def parse_prediction(self, url=None, test_file=None):
browser = ms.StatefulBrowser()

browser.open(url)
# page contains PDB file as a string with results in b_factor column
pdb_string = re.findall(
r"stringContainingTheWholePdbFile = (.*?);",
str(browser.page),
Expand All @@ -153,6 +153,7 @@ def parse_prediction(self, url=None, test_file=None):
for atom in res:
b_fact = atom.get_bfactor()

# arbitrary value for active
if b_fact >= 0.5:
prediction_dict["active"].append([res.id[1], b_fact])
else:
Expand Down

0 comments on commit 333c248

Please sign in to comment.