i apply some rules in [[Corrections]] that depend upon the order they are executed
looking at the code in StdCalibrate (around lines 359-363 in weewx.engine) i see the sequencing from ‘correction_dict.scalars' would be lost when placed in simple dictionary ‘corrections'. i also see that the corrections are not applied in a deterministic sequence (line 374). so my dependency upon the sequence seems to be screwed...
assuming my interpretation is correct - that rule execution sequence under [[Corrections]] is not determinsitic - my workaround is to sort the data_type keys when the rules are being applied i.e. line 374
#GJE for obs_type in self.corrections:
for obs_type in sorted(self.corrections):
this is just a workaround to give me determinism so i can devise rules that work predictably, but the real answer is preserving the original sequencing
i have weewx clone but not fork so can’t submit a pull request. i don’t think i would for this workaround anyway...