- fixed bug that caused the last day of the tranche to be skipped when calc missing
- aligned progress reporting with rebuild daily reporting (ie every 1000 records)
Reworked check_strings() screen and syslog output:
- now gives progress ala --rebuild-daily
- syslog is silent for --check-strings and --fix-strings with --dry-run
- left 'Preparing' (rather than 'Starting') but added 'this may take a
while' as there is a significant delay in dbmanager.genBatchRows()
initialising at line 619 (well there was for 400k records)
- progress function for fixes included as a method in base class that
can be overridden
- much changing of logging to give consistent results/output
- believe I retained Tom's recent changes to patch.py (commit 4acf752)
- removed required weewx version code
- --string-check/--fix changed to --check-string/--fix-strings
- implement --check-weighting/--fix-weighting to replace
--apply-weight-patch
- rejig some old 2.x.y text that refers to archive database
- all reference to backfill has been removed and only rebuild is used
- 1st cut implementation of time taken report for selected actions (some
still to be tested)
- removed all reference to 'patch' except for patch.py in weecfg - need
to see how far we want to take this!
patch.py
- removed weewx version checking as per wee_database
- rejigging of some names to remove the 'patch' word from wee_database
- now uses 'Version' metadata field
- apply_patches() now accepts a patch config dict
- day summaries are now set at Version 2.0 on creation
- 1st cut addition of --apply-weight-patch to wee_database
wee_database previously did daily summary backfills in one datbase
transaction. This resulted in errors for large archives being processed
on machines with relatively small amounts of memory. The TRANS-DAYS
command line parameter allows the backfill to be completed in a series
of database transactions using no more than TRANS-DAYS data at a time.
To provide a consistent approach to logging some minor changes were made
to the logging in DaySummaryManager.backfill_day_summary(),
DaySummaryManager.drop_daily() and StdArchive.setup_database().
Added --transfer option with mandatory --dest-binding parameter.
Included --dry-run parameter to do everything except the actual
transfer. Also reformatted usage display along functional lines as in
wee_extension.