Traceback (most recent call last):
File "C:\Python27\lib\site-packages\matplotlib\backends\backend_qt4.py", line 156, in <lambda>
File "C:\Python27\lib\site-packages\matplotlib\backend_bases.py", line 1564, in close_event
RuntimeError: wrapped C/C++ object of type FigureCanvasQTAgg has been deleted
This error does not halt the process, rather the plotting script continues to execute (and generate figures!) quite happily otherwise. While it seems to be working, I am concerned about these errors (benign as they seem). Unfortunately, there are no lines in the plotting script being flagged as being in error. The script that is calling the plotting script is posted below. Since the plotting script is rather long (really it is just the same thing being done for four different gases) I add it as an attachment in .txt. I give the whole script here for the sake of being thorough, though I don't expect anyone to read the whole thing (actually, I suspect the issue is with the system call and has nothing to do with the plotting script, which makes the need to post it moot...).
Does anyone have any idea regarding why this error is occurring?
- Code: Select all
import os, time
import datetime as dt
"""Forces the code to sleep until tomorrow morning at 06:00."""
today = time.localtime()
today = time.mktime(today[:3] + (0,0,0) + today[6:]) # Midnight time.
time.sleep(today + 24*3600 + 6*3600 - time.time())
# Print current date.
print dt.datetime.strftime(dt.datetime.today(),'%Y %m %d %H:%M:%S')
# Run code to grab data from remote machine.
print 'Grabbing/unzipping data.'
# Run code to process data.
print 'Processing to l2/3.'
# Run code to create plots.
print 'Creating plots.'
# Run code to make posting data files.
print 'Creating data files for posting.'
# Post data.
print 'Posting data to web.'