David Edelman Posted July 18 Share Posted July 18 I'm hoping this is just something simple that I'm overlooking, but I am unable to push an updated asset tree into my specific workbook. After populating the asset tree with updated calculations, I want to push it back to the workbook that it was originally pushed to. ODATA is the tree name. I try ODATA.push(workbook='0EED59E3-B0D7-71F0-9855-56B69067A517', worksheet='From Data Lab') and ODATA.push(workbook='My Folder >> OData Setup', worksheet='From Data Lab') and both times I get this error message TypeError: push() got an unexpected keyword argument 'workbook' Error found at line 1 in cell 41. This error was not handled by SPy. Please contact Seeq support if this problem persists. --------------------------------------------------------------------------- TypeError Traceback (most recent call last) Cell In[41], line 1 ----> 1 ODATA.push(workbook='My Folder >> OData Setup', 2 worksheet='From Data Lab') File /usr/local/lib/python3.8/site-packages/seeq/spy/_status.py:119, in Status.handle_keyboard_interrupt.<locals>.decorator.<locals>.out(*args, **kwargs) 116 del kwargs[kwarg] 118 try: --> 119 return func(*args, **kwargs) 120 except KeyboardInterrupt as e: 121 kwargs['status'].update('Operation canceled', Status.CANCELED) TypeError: push() got an unexpected keyword argument 'workbook' I'm not experienced in Python (followed the examples to put my tree together), so I don't even know where to look next. Any help would be appreciated. Thanks, David Edelman Link to comment Share on other sites More sharing options...
Seeq Team Solution Chris Harp Posted July 18 Seeq Team Solution Share Posted July 18 Hi David, I'm assuming you created your asset tree using the spy.assets.Tree. You define the workbook location when you define the tree. It is not necessary to specify the worksheet as the asset tree is scoped to at the workbook level. # Define the workbook when you define the tree. ODATA = spy.assets.Tree('OData Asset Tree', workbook='My Folder >> OData Setup') # Rest of your code. ODATA.push() Let me know if you have any questions. Chris Link to comment Share on other sites More sharing options...
David Edelman Posted July 18 Author Share Posted July 18 Thanks Chris. That worked for me. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now