I found that you only have to implement ‘not_null’. I believe this is because the ‘has_data’ tag (tags.py line 389) enters the xtype system with an aggregate of ‘has_data’. This then looks for the aggregate of ‘not_null’ (xtypes.py line 156). Looking forward to hearing if my conclusion was correct.
On Friday 23 February 2024 at 10:48:51 UTC-5 Karen K wrote: > Do I have to implement both the not_null and has_data aggregation in an > XType extension? > > > Tom Keffer schrieb am Freitag, 23. Februar 2024 um 14:01:45 UTC+1: > > The aggregation not_null does not check first to see if the type exists. > If you know the type exists, it's slightly faster. > > In practice, I don't think it's very useful. I may remove it from the > documentation. > > On Fri, Feb 23, 2024 at 3:48 AM Karen K <kk44...@gmail.com> wrote: > > What is the difference between the aggregation types has_data and not_null > according to the documentation in > http://weewx.com/docs/5.0/reference/aggtypes/. > > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/da719dec-cf71-4ffb-8d0e-a7cb1bdd7d26n%40googlegroups.com.