I believe calls to plotgen_ts may be related to stacked windrose-extension By Gary Roderick (gjr80)
Given that Gary's Github is gone it is archived at:
It's a pretty nice extension, I use it , and know many others have used it as well . Would hate to see it break.
Some brief excerpt from stackedwindrose.py
# initialise some properties for later use
self.plotgen_ts = None
# Get end time for plot. In order try gen_ts, last known good
# archive time stamp and then current time.
self.plotgen_ts = gen_ts
if not self.plotgen_ts:
self.plotgen_ts = db_manager.lastGoodStamp()
if not self.plotgen_ts:
self.plotgen_ts = time.time()
# get data tuples for speed and direction
# TODO. Review, may need to be time_length + 1
_span = weeutil.weeutil.TimeSpan(self.plotgen_ts - time_length,
self.plotgen_ts)
(_t_vec, _t_vec_stop, _sp_vec) = db_manager.getSqlVectors(_span,
self.obs)
(_t_vec, _t_vec_d_stop, dir_data) = db_manager.getSqlVectors(_span,
self.dir_name)
Thanks,
Paul