Jump to content

Mark Derbecker

Seeq Team
  • Posts

    72
  • Joined

  • Last visited

  • Days Won

    16

Posts posted by Mark Derbecker

  1. Hi Ryan,

    In the latest versions of SPy (use v190.2 or later) you can supply a "Condition" column in your "data" DataFrame that corresponds to an index entry in your "metadata" DataFrame, and this combination will allow you to push multiple conditions in spy.push() call. It should be faster because SPy will push the conditions in parallel.

    Take a look at the docs here for more info:

    https://python-docs.seeq.com/user_guide/spy.push.html#pushing-condition-and-capsule-data

  2. @Jess that would indicate that the workbook you're trying to push to hasn't been shared with Write privileges with whatever user is executing the `spy.push()` command.

    If you're still having trouble after checking the access control, please include the call stack of the error so we can troubleshoot further.

  3. Hi Chris,

    (I am assuming you are not using Seeq Data Lab, please correct me if I'm wrong.)

    Seeq's SPy library is recommended for Python scripts, as it contains higher-level functions for common use cases, and it employs Pandas DataFrames as the primary data structure for input and output. seeq-spy is a "wrapper" around the seeq REST API Python SDK.

    To use SPy in Seeq Server R62.0.9, first install the seeq module like so:

    pip install seeq~=62.0

    Then install the latest version of SPy:

    pip install seeq-spy

    Then use the documentation for SPy found here:

    https://python-docs.seeq.com/user_guide/Tutorial.html

    • Like 1
  4. When I try to open the item properties, the worksheet seems to crash and reverts to the home folder. 

    This is the clue we'll need to drill down on. Pat if you're using Chrome, open up the Developer Tools with Ctrl+Shift+I. Then click on the Console tab, which will allow us to see any JavaScript errors. Now recreate this problem (where it crashes & reverts to the home folder), and I'm guessing there will be some errors that show in red in the Console. Please copy & paste them into a reply to this thread (be generous with how much you copy/paste, the more info we have the better).

    • Like 1
  5. That's the number of unique items, and it includes lots of things:

    - Worksheets
    - Worksteps (these are the individual worksheet "states" that define the displayed items and all other worksheet configuration at a particular point in time)
    - Calculated items (signals/conditions/scalars/metrics/histograms) -- this referred to as the "item inventory"
    - Journal text
    - Journal images

    The things that generally take a long time are the Calculated items. You can try specifying `include_inventory=False` during your push to see if that's a lot faster.

    • Like 1
  6. Hi Willem, what that code ends up doing is creating a "blank" Topic object (on the first line) rather than pulling the existing Topic from Seeq. As a result, you'll always be overwriting what the other code pushes.

    So do this at the beginning instead:

    workbooks = spy.workbooks.pull({'ID': '<id_of_workbook>'})
    topic = workbooks['RPB-4 performance']

    One thing to note however is that add_image() is going to add on to the existing Topic Document, and so you may get an endless addition of images, which is also probably not what you want.

    Is there any way for you to get these two separate pieces of code to execute at the same time?

  7. Well, actually, that all SHOULD work the way you intend it -- where you have a Journal that opens those preset visualizations.

    But it's not working, and I think it's a bug. Can you execute the following lines at the bottom of your notebook and send me the resulting zip files?

    spy.workbooks.save(spy.workbooks.load('./PJD_WorksheetTemplate'), 'ForMark-Templates.zip')
    spy.workbooks.save(WorkbookInstance_List, 'ForMark-PulledWorkbook.zip')

    (I agree with your comment -- the Mustache stuff won't help here.)

  8. Pat, in the ipynb file you attached, it's showing that the error is 

    AttributeError: 'Analysis' object has no attribute 'parameters'

    Can you attach a notebook with the dependency error showing (that you took a screenshot of above), and with the stack trace expanded?

    Also, for your template worksheet, do you have a Journal with links to worksteps in it? I think that may be causing a problem. (It shouldn't cause a problem... but I need to see what the Journal looks like.)

     

     

×
×
  • Create New...