patjdixon Posted June 8 Share Posted June 8 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 Seeq Team Share Posted June 8 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 Author Share Posted June 9 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 Author Share Posted June 9 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 Seeq Team Share Posted June 9 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 Author Share Posted June 9 Attached topic_document_deprecated.ipynb Link to comment Share on other sites More sharing options...
Seeq Team Mark Derbecker Posted June 9 Seeq Team Share Posted June 9 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 Author Share Posted June 11 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 Seeq Team Share Posted June 12 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