Open jorgeboucas opened 3 years ago
In cytoscape 3.8.2 cytoscape.vizmap.apply(styles="default") does not work if no network is selected.
cytoscape.vizmap.apply(styles="default")
Cytoscape: 3.8.2
CyRest: v1
error:
apiVersion v1 cytoscapeVersion 3.8.2 <Response [500]> 500 b'{\n "data": {},\n "errors":[{"status":500,"type":"urn:cytoscape:ci:cyrest-core:v1:handle-json-command:errors:2","message":"No network views selected.","link":"file:/Users/jboucas/CytoscapeConfiguration/3/framework-cytoscape.log"}]\n}' Traceback (most recent call last): File "/beegfs/group_bit/data/projects/departments/Bioinformatics/bit_Lena_rde1//cel/deseq2_output/PPIs.py", line 60, in <module> cytoscape.vizmap.apply(styles="default") File "/beegfs/group_bit/data/projects/departments/Constantinos_Demetriades/CD_Filipo_RR27/venv/lib/python3.8/site-packages/py2cytoscape/cyrest/vizmap.py", line 38, in apply response=api(url=self.__url+"/apply", PARAMS=PARAMS, method="POST", verbose=verbose) File "/beegfs/group_bit/data/projects/departments/Constantinos_Demetriades/CD_Filipo_RR27/venv/lib/python3.8/site-packages/py2cytoscape/cyrest/base.py", line 150, in api raise ValueError(res["errors"][0]) ValueError: {'status': 500, 'type': 'urn:cytoscape:ci:cyrest-core:v1:handle-json-command:errors:2', 'message': 'No network views selected.', 'link': 'file:/Users/jboucas/CytoscapeConfiguration/3/framework-cytoscape.log'}
Maybe also worth for @bdemchak and @AlexanderPico to take a look
In cytoscape 3.8.2
cytoscape.vizmap.apply(styles="default")
does not work if no network is selected.Cytoscape: 3.8.2
CyRest: v1
error:
Maybe also worth for @bdemchak and @AlexanderPico to take a look