-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Constant Occupancy Detector Status Evaluation #511
Comments
@kengodleskidot I dived into the diagnostic code to check the difference for "good" and "constant". I noticed that we used However, when I pulled out the Another issue might be: The rolling window function calculates a time window every 5 minute, should it be the case that for a time window 5:00 - 21:00, we calculate 4 data points from 5:00-9:00, 9:00-13:00, 13:00-17:00, 17:00-21:00 as metrics for detector status? |
@thehanggit in regard to the rolling window function, we are looking to identify any sample window where there is a non-zero repeating occupancy. I do not believe we want to look at four distinct windows as mentioned in the last sentence. I am concerned that I am seeing a lot of `occupancy_avg' values of 0 which could affect the outcome even though there is a qualify statement in the int_diagnostics__constant_occupancy.sql model that should exclude these values from the Constant status diagnostic check. I am including the Constant detector diagnostic summary logic for reference: I believe it would be beneficial to look at the five-minute data for |
In that case, would the logic for the condition be After changing that, the status became |
Does the 5-minute data from Modern PeMS support a diagnostic test result of "Good"? If so, it would be good to confirm with @JamesSLogan that the change from "or" to "and" makes sense given the requirements of the diagnostic test. |
Yes, that makes sense. Values of 0 can slip through, currently, since 0 is not null. If I'm understanding the requirement correctly, updating the occupancy_avg check to just |
Thank you @JamesSLogan, I agree with you using @kengodleskidot Another issue I found out is that in some cases, the numerical value of |
I agree that using |
To confirm our constant occupancy model int_diagnostics__constant_occupancy.sql is correctly diagnosing detectors we can spot check the Tableau dashboard (https://tableau.dot.ca.gov/t/Construction/views/PeMS_Detector_Status_QC-Detailed/PeMSDetectorDetailsQualityCheck) and see which detectors on which dates show a Constant status in the existing system while the modern system has a different status (typically "Good")
The text was updated successfully, but these errors were encountered: