udotdevelopment/ATSPM

Last plan label across the top of the charts like Split Monitor mistakenly shows Free

ian-cameron opened this issue · 0 comments

The last coordination plan label in the series shows up as free, and this results in incorrect max out and force off calculations because max outs are calculated for free periods and force offs are calculated for coordinated periods. This is on Purdue phase termination and split failure charts too.
For example:

SplitMonitor

We did some debugging and found that code used for the charts looks for Event Code 131 (coord pattern change) at the end of the analysis period. I'll send in a PR, but if we add a dummy Event 131 at the end of the analysis period, this fixed several charts where the last coordination plan was missing:

FixedSplitMonitor