Skip to content

Commit

Permalink
fixed more of export
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeboucas committed Feb 7, 2019
1 parent 6b12af5 commit 55e0088
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion py2cytoscape/cyrest/cyrest.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def MAKETMP():

response=api("view","fit content",host=host,port=port, version=version, verbose=verbose)
sleep(2)
response=api("view", "export" , {"options":filetype,"OutputFile":outfile}, host=host,port=port,version=version,verbose=verbose)
response=api("view", "export" , {"options":filetype,"outputFile":outfile, "view":"current"}, host=host,port=port,version=version,verbose=verbose)
if host!='localhost':
import paramiko
print("Looking to ssh keys for remote access.")
Expand Down
6 changes: 3 additions & 3 deletions py2cytoscape/cyrest/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def destroy(self, verbose=False):
response=api(url=self.__url+"/destroy", PARAMS=PARAMS, method="POST", verbose=verbose)
return response

def export(self, options=None, OutputFile=None, Resolution=None,\
def export(self, options=None, outputFile=None, Resolution=None,\
Units=None, Width=None, Zoom=None, view="current", verbose=False):
"""
Exports the current view to a graphics file and returns the path to the
Expand Down Expand Up @@ -78,9 +78,9 @@ def export(self, options=None, OutputFile=None, Resolution=None,\
:returns: path to the saved file
"""
PARAMS=set_param(["Height","options","OutputFile","Resolution",\
PARAMS=set_param(["Height","options","outputFile","Resolution",\
"Units","Width","Zoom","view"],\
[Height,options,OutputFile,Resolution,Units,Width,Zoom,view ])
[Height,options,outputFile,Resolution,Units,Width,Zoom,view ])
response=api(url=self.__url+"/export", PARAMS=PARAMS, method="POST", verbose=verbose)
return response

Expand Down

0 comments on commit 55e0088

Please sign in to comment.