patjdixon Posted June 8, 2023 Share Posted June 8, 2023 Until R60 I had a script that used ".document" to save images to file. Now I get a warning that this is a deprecated function. It is suggested to replace it with AnalysisWorksheet "journal" or TopicDocument "report". I am looking for some examples of what this should be changed to. Any suggestions? Link to comment Share on other sites More sharing options...
Seeq Team Mark Derbecker Posted June 8, 2023 Seeq Team Share Posted June 8, 2023 It looks like you're working with a TopicDocument. As per the error message, you would just change `document` to `report`. Link to comment Share on other sites More sharing options...
patjdixon Posted June 9, 2023 Author Share Posted June 9, 2023 I obviously have a syntax issue. Other than ChatGPT, is there somewhere I can go to find examples and documentation on how to do this correctly? Link to comment Share on other sites More sharing options...
patjdixon Posted June 9, 2023 Author Share Posted June 9, 2023 ChatGPT says look in the spy library for the replacement for the deprecated ".document" function, but I have been looking and don't see anything Link to comment Share on other sites More sharing options...
Seeq Team Mark Derbecker Posted June 9, 2023 Seeq Team Share Posted June 9, 2023 Can you post your ipynb file Pat, I think that it will be fastest to show you what I mean if I can just rewrite your code. Link to comment Share on other sites More sharing options...
patjdixon Posted June 9, 2023 Author Share Posted June 9, 2023 Attached topic_document_deprecated.ipynb Link to comment Share on other sites More sharing options...
Seeq Team Mark Derbecker Posted June 9, 2023 Seeq Team Share Posted June 9, 2023 OK Pat here is the fixed-up ipynb file. Do a search for "MarkD says" and you'll see how I've left comments to explain what changes I made. topic_document_deprecated (1).ipynb 1 Link to comment Share on other sites More sharing options...
patjdixon Posted June 11, 2023 Author Share Posted June 11, 2023 Thanks Mark, it works. I would still like to know where to look to find the documentation on this. Link to comment Share on other sites More sharing options...
Seeq Team Mark Derbecker Posted June 12, 2023 Seeq Team Share Posted June 12, 2023 Hi Pat, here's the documentation. There's not much there, but this is it: https://python-docs.seeq.com/reference/submodules/workbooks.html#seeq.spy.workbooks.TopicDocument.report 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