It looks like you're new here. If you want to get involved, click one of these buttons!
I am wondering if it is possible to programatically retrieve the error message that a PCell generates?
For example, I put in a statement inside produce_impl(self):
and on the screen I get the error message:
But unless I have the debugger on, the error doesn't cause an Exception. I see you have in PCellDeclarationHelper in produce(), a try: self.produce_impl(), which prevents the Exception. How does your GUI catch the text?
Would it be possible to have a method that checks for PCell errors and gets the output error?
pcell = new_layout.create_cell(mm, all_params) if pcell.error: print(pcell.errortext)