Jump to content

Craig Fiedorek

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Craig Fiedorek

  1. Hi Ruby, I'm the author of this particular section of code. Outside of pandas, the library used to keep track of all data in SPy, the visualization function does not use any open source libraries, and the printed tree structure is made from scratch. I found that most available tree visualization libraries were either too specific or too general in their intended use, and it was simpler to write this from scratch. If you are looking to write something similar for your own purposes, I found this Stack Overflow thread describing how to do an equivalent thing in the context of file trees. Best, Craig
  2. Hi Pat, Errors like this can sometimes occur if there are items in your pre-existing tree that are unexpectedly archived. I would use spy.search to look for any such items, particular items related to PM_SIM_AssetTree >> LAB >> PM_SIM_AssetTree >> REEL. search_results = spy.search({'Path': 'PM_SIM_AssetTree'}, workbook=scopedtoid, include_archived=True) search_results[search_results['Archived'] == True] Another possibility is that you have an item in your tree with the same name as its parent asset. SPy Trees unfortunately does not support the handling of such items. If this is the case for you, then you can still proceed by using the spy.assets module, by reconstructing your tree from scratch using spy.assets.Tree, or by manually renaming any such items using the API reference page in Seeq. If neither of these leads prove fruitful, I can assist further with the help of some more information about your current asset tree. Run the following code search_results = spy.search({'Path': 'PM_SIM_AssetTree'}, workbook=scopedtoid, include_archived=True, all_properties=True) search_results.to_csv('search_results.csv') and share the resulting search_results.csv file in your next post, and I can take a deeper look. Best, Craig
×
×
  • Create New...