I have been developing a custom made plugin over the last month and recently I have noticed that when I reload the plugin with plugin reloader the plugin work just fine for the first use. In the plugin I load layers into python where I safe them into a pandas DF which I use to create a bar graph with matplotlib. Now the error that occurse is when I use the plugin (without reloading it) for the second time, now the plugin gives me an error that the DF where I normally safe my data is empty. Meaning that the plugin didn't load any of the data from the selected layers into the DF.
My best quess is that it has to do something with correctly loading and unloading the plugin after use but I can't figure out where I should fix this. Is there anybody that can help me with this or knows of a different reason that this could happen?
Note that my algorithm uses pseudo-temporary files (meaning regular files I "manually" delete) because I never did manage to get any of the integrated temporary file options to work. Shouldn't make a difference, but well, FYI
– Noxy Aug 08 '23 at 14:36