File tree Expand file tree Collapse file tree 8 files changed +32
-32
lines changed
Expand file tree Collapse file tree 8 files changed +32
-32
lines changed Original file line number Diff line number Diff line change @@ -167,10 +167,10 @@ def main():
167167 actions = result .data ['actions' ]
168168
169169 #### Read message #2 from the database. This should be the acetaminophen proteins query result message
170- sys .path .append (os .path .dirname (os .path .abspath (__file__ ))+ "/../../UI/Feedback " )
171- from RTXFeedback import RTXFeedback
172- araxdb = RTXFeedback ()
173- message_dict = araxdb . getMessage ( 2 )
170+ sys .path .append (os .path .dirname (os .path .abspath (__file__ )) + "/../ResponseCache " )
171+ from response_cache import ResponseCache
172+ response_cache = ResponseCache ()
173+ message_dict = response_cache . get_response ( 314204 )
174174
175175 #### The stored message comes back as a dict. Transform it to objects
176176 sys .path .append (os .path .dirname (os .path .abspath (__file__ ))+ "/../OpenAPI/python-flask-server/" )
Original file line number Diff line number Diff line change @@ -1525,17 +1525,17 @@ def main():
15251525 actions = result .data ['actions' ]
15261526
15271527 #### Read message #2 from the database. This should be the acetaminophen proteins query result message
1528- sys .path .append (os .path .dirname (os .path .abspath (__file__ )) + "/../../UI/Feedback " )
1529- from RTXFeedback import RTXFeedback
1530- araxdb = RTXFeedback ()
1528+ sys .path .append (os .path .dirname (os .path .abspath (__file__ )) + "/../ResponseCache " )
1529+ from response_cache import ResponseCache
1530+ response_cache = ResponseCache ()
15311531
15321532 #message_dict = araxdb.getMessage(2) # acetaminophen2proteins graph
15331533 # message_dict = araxdb.getMessage(13) # ibuprofen -> proteins -> disease # work computer
15341534 # message_dict = araxdb.getMessage(14) # pleuropneumonia -> phenotypic_feature # work computer
15351535 # message_dict = araxdb.getMessage(16) # atherosclerosis -> phenotypic_feature # work computer
15361536 # message_dict = araxdb.getMessage(5) # atherosclerosis -> phenotypic_feature # home computer
15371537 # message_dict = araxdb.getMessage(10)
1538- message_dict = araxdb . getMessage ( 40 )
1538+ message_dict = response_cache . get_response ( 314204 )
15391539
15401540 #### The stored message comes back as a dict. Transform it to objects
15411541 from ARAX_messenger import ARAXMessenger
Original file line number Diff line number Diff line change @@ -942,17 +942,17 @@ def main():
942942 actions = result .data ['actions' ]
943943
944944 #### Read message #2 from the database. This should be the acetaminophen proteins query result message
945- sys .path .append (os .path .dirname (os .path .abspath (__file__ )) + "/../../UI/Feedback " )
946- from RTXFeedback import RTXFeedback
947- araxdb = RTXFeedback ()
945+ sys .path .append (os .path .dirname (os .path .abspath (__file__ )) + "/../ResponseCache " )
946+ from response_cache import ResponseCache
947+ response_cache = ResponseCache ()
948948
949949 #message_dict = araxdb.getMessage(2) # acetaminophen2proteins graph
950950 # message_dict = araxdb.getMessage(13) # ibuprofen -> proteins -> disease # work computer
951951 # message_dict = araxdb.getMessage(14) # pleuropneumonia -> phenotypic_feature # work computer
952952 # message_dict = araxdb.getMessage(16) # atherosclerosis -> phenotypic_feature # work computer
953953 # message_dict = araxdb.getMessage(5) # atherosclerosis -> phenotypic_feature # home computer
954954 # message_dict = araxdb.getMessage(10)
955- message_dict = araxdb . getMessage ( 40 )
955+ message_dict = response_cache . get_response ( 314204 )
956956
957957 #### The stored message comes back as a dict. Transform it to objects
958958 from ARAX_messenger import ARAXMessenger
Original file line number Diff line number Diff line change @@ -1038,9 +1038,9 @@ def main():
10381038 actions = result .data ['actions' ]
10391039
10401040 #### Read message #2 from the database. This should be the acetaminophen proteins query result message
1041- sys .path .append (os .path .dirname (os .path .abspath (__file__ )) + "/../../UI/Feedback " )
1042- from RTXFeedback import RTXFeedback
1043- araxdb = RTXFeedback ()
1041+ sys .path .append (os .path .dirname (os .path .abspath (__file__ )) + "/../ResponseCache " )
1042+ from response_cache import ResponseCache
1043+ response_cache = ResponseCache ()
10441044
10451045 # message_dict = araxdb.getMessage(2) # acetaminophen2proteins graph
10461046 # message_dict = araxdb.getMessage(13) # ibuprofen -> proteins -> disease # work computer
@@ -1050,7 +1050,7 @@ def main():
10501050 # message_dict = araxdb.getMessage(10)
10511051 # message_dict = araxdb.getMessage(36) # test COHD obs/exp, via ARAX_query.py 16
10521052 # message_dict = araxdb.getMessage(39) # ngd virtual edge test
1053- message_dict = araxdb . getMessage ( 1 )
1053+ message_dict = response_cache . get_response ( 314204 )
10541054
10551055 #### The stored message comes back as a dict. Transform it to objects
10561056 from ARAX_messenger import ARAXMessenger
Original file line number Diff line number Diff line change @@ -849,10 +849,10 @@ def main():
849849
850850 # For local messages due to local changes in code not rolled out to production:
851851 if params .local :
852- sys .path .append (os .path .dirname (os .path .abspath (__file__ )) + "/../../UI/Feedback " )
853- from RTXFeedback import RTXFeedback
854- araxdb = RTXFeedback ()
855- message_dict = araxdb . getMessage ( 294 ) # local version of 2709 but with updates to COHD
852+ sys .path .append (os .path .dirname (os .path .abspath (__file__ )) + "/../ResponseCache " )
853+ from response_cache import ResponseCache
854+ response_cache = ResponseCache ()
855+ message_dict = response_cache . get_response ( 314204 )
856856 # message_dict = araxdb.getMessage(297)
857857 # message_dict = araxdb.getMessage(298)
858858 # message_dict = araxdb.getMessage(299) # observed_expected_ratio different disease
Original file line number Diff line number Diff line change @@ -186,10 +186,10 @@ def main():
186186 actions = result .data ['actions' ]
187187
188188 #### Read message #2 from the database. This should be the acetaminophen proteins query result message
189- sys .path .append (os .path .dirname (os .path .abspath (__file__ ))+ "/../../UI/Feedback " )
190- from RTXFeedback import RTXFeedback
191- araxdb = RTXFeedback ()
192- message_dict = araxdb . getMessage ( 2 )
189+ sys .path .append (os .path .dirname (os .path .abspath (__file__ )) + "/../ResponseCache " )
190+ from response_cache import ResponseCache
191+ response_cache = ResponseCache ()
192+ message_dict = response_cache . get_response ( 314204 )
193193
194194 #### The stored message comes back as a dict. Transform it to objects
195195 from ARAX_messenger import ARAXMessenger
Original file line number Diff line number Diff line change @@ -534,10 +534,10 @@ def main():
534534 actions = result .data ['actions' ]
535535
536536 #### Read message #2 from the database. This should be the acetaminophen proteins query result message
537- sys .path .append (os .path .dirname (os .path .abspath (__file__ ))+ "/../../UI/Feedback " )
538- from RTXFeedback import RTXFeedback
539- araxdb = RTXFeedback ()
540- message_dict = araxdb . getMessage ( 2 )
537+ sys .path .append (os .path .dirname (os .path .abspath (__file__ )) + "/../ResponseCache " )
538+ from response_cache import ResponseCache
539+ response_cache = ResponseCache ()
540+ message_dict = response_cache . get_response ( 314204 )
541541
542542 #### The stored message comes back as a dict. Transform it to objects
543543 from ARAX_messenger import ARAXMessenger
Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ def main():
1919 response = Response ()
2020
2121 #### Read message #2 from the database. This should be the acetaminophen proteins query result message
22- sys .path .append (os .path .dirname (os .path .abspath (__file__ ))+ "/../../UI/Feedback " )
23- from RTXFeedback import RTXFeedback
24- araxdb = RTXFeedback ()
25- message_dict = araxdb . getMessage ( 2 )
22+ sys .path .append (os .path .dirname (os .path .abspath (__file__ )) + "/../ResponseCache " )
23+ from response_cache import ResponseCache
24+ response_cache = ResponseCache ()
25+ message_dict = response_cache . get_response ( 314204 )
2626
2727 #### The stored message comes back as a dict. Transform it to objects
2828 messenger = ARAXMessenger ()
You can’t perform that action at this time.
0 commit comments