From 333c24847004aeb66a6f942a4a1e14a516c6caf1 Mon Sep 17 00:00:00 2001 From: AldovdN <90687940+AldovdN@users.noreply.github.com> Date: Wed, 27 Jul 2022 13:13:19 +0200 Subject: [PATCH] added comments --- src/cport/modules/scannet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cport/modules/scannet.py b/src/cport/modules/scannet.py index 130efbd..6b7a06f 100644 --- a/src/cport/modules/scannet.py +++ b/src/cport/modules/scannet.py @@ -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 @@ -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), @@ -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: