Commit Graph

27 Commits

Author SHA1 Message Date
Tom Keffer
09a92e5e0c Call super() without arguments
Python 3
2023-08-12 09:35:52 -07:00
Tom Keffer
76407ae600 Picked some nits. 2022-12-30 16:26:36 -08:00
Tom Keffer
56337c58cf Fix problem where grace is still used. 2022-12-25 10:32:16 -08:00
Tom Keffer
915e0a8fed Fixed minor problem when database is empty. 2021-01-22 05:20:59 -08:00
Tom Keffer
02230d310d Auto-patch daily summaries on startup. 2020-12-11 09:07:44 -08:00
Tom Keffer
e99dd45818 Squashed commit of the following:
commit 5023ea5acdee7b7698d3f9e59118711503bbb2ab
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Sun Oct 18 04:38:05 2020 -0700

    Suggest more xtypes examples.

commit 3c8b0e77c4a0c5163bde5df513f5eda37eac9853
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Sat Oct 17 08:07:31 2020 -0700

    Added sample image of vapor_p.
    Added comment about ordering matters.

commit 9ebc989d702f66249f6caafbd9ba1e9739eb42d4
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Sat Oct 17 06:15:18 2020 -0700

    XType class Delta can now use the same cumulative type more than once.
    Added tests.

commit 47857d83817a4fb32ab645245239cf5a56c65b19
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Fri Oct 16 16:29:18 2020 -0700

    Added XType 'Delta', for calculating differences from cumulative totals.

commit bb8a07bd3e828f7cd7f20660c8702370151bbb96
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Fri Oct 16 12:11:01 2020 -0700

    Reformat xtypes documentation. Finishes fix for issue #491.

commit a27d6e1dbdee272c2a2b22bb58d162cbb7472049
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Fri Oct 16 12:09:33 2020 -0700

    Upgrade now adds new service group xtypes_services.
    Update tests to follow.

commit 611dbc60d0908294ae268019c48f2ca7693f0615
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Fri Oct 16 09:11:47 2020 -0700

    No heat index for temperatures under 40F.

commit fe9e60818295fcc8386501425b259ea2111005d7
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Fri Oct 16 08:22:37 2020 -0700

    Update comments on get_series()

commit 14f3a15cd7df2e64674d794fb375cc7e807ad91a
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Fri Oct 16 08:12:03 2020 -0700

    Add a version of get_series() that works for xtypes.
    Document it.
    Include vaporpressure.py in the examples subdirectory.

commit 0995f772e6b204b13c60af42681fdb2e54ab200b
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Thu Oct 15 17:07:52 2020 -0700

    More details about how to write an xtypes extension.

commit 1e1dce3a29f211944230119078e0108502f8f706
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Thu Oct 15 17:07:10 2020 -0700

    Add threading lock to RainRater.

commit bed387de5913e42291045b4780e8110c15229b73
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Thu Oct 15 04:49:59 2020 -0700

    Update and improve the xtypes documentation.

commit dc4f488d17a4aeaa9b9d604c500f7063c044a0af
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Thu Oct 15 04:49:31 2020 -0700

    Add service group xtype_services to weewx.conf.

commit 6f29b1a23d60189b07efae4d4ea160079eb973e8
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Wed Oct 14 13:31:43 2020 -0700

    It's OK for direction to be none, provided speed is zero

commit 034be1c968dd0bc33791d4f6559c15c7e28b6364
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Wed Oct 14 13:31:21 2020 -0700

    Check to make sure the section [Engine][[Services]] exists

commit 8cf2b3e372d1b9da948ef6caa27aadb721308850
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Wed Oct 14 08:24:13 2020 -0700

    Separate StdService from XType functionality.
    Makes XType functionality useful outside the context of WeeWX services.
    Simplifies test suites.

commit 9325e792cafa0a885f529ac15636202d518a9c61
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Wed Oct 14 08:23:07 2020 -0700

    Class DummyEngine derives from Engine.

commit 7ac31f7bd2b80c61792e0f3a5f0293ec1eb0666b
Author: Tom Keffer <tkeffer@gmail.com>
Date:   Sat Oct 10 16:26:19 2020 -0700

    Made it easier to add new, derived types via StdWXCalculate.
    See issue #491.
2020-10-18 05:49:45 -07:00
gjr80
5a7380ee70 Moved some common init code into the base DatabaseFix class, fixed a few pycharm complaints 2019-11-26 19:02:13 +10:00
gjr80
75c3721e8f Revised calc-missing functionality should now be working. Think most corner cases have been picked up. 2019-11-25 19:06:08 +10:00
Tom Keffer
d39c0169fa Catch up merge with development
# Conflicts:
#	docs/changes.txt
2019-10-25 06:14:01 -07:00
gjr80
a02488122f - change calcmissing tranche size from 50 to 20 days
- 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)
2019-10-24 13:23:18 +10:00
Tom Keffer
d21d288ebe Update wee_database with new calling signature for WXCalculate 2019-10-12 12:13:34 -07:00
gjr80
03f8745c5a - added class CalcMissing to calculate and store missing derived fields over a given timespan, functioning but likely some output/log formatting issues to be finalised
- fixed small formatting issue with _progress() methods
2019-10-03 13:31:14 +10:00
Tom Keffer
5fba00f08b Various formatting nits 2019-08-20 05:45:26 -07:00
Tom Keffer
9c2ee63de4 Refactored weeutil and weecfg to use Python's logging module 2019-08-16 11:38:53 -07:00
Tom Keffer
ea120ee1f3 Minor reformatting 2019-02-12 18:42:42 -08:00
Tom Keffer
6f92190f2c Machine translated using python-modernize 2019-02-12 16:51:00 -08:00
vinceskahan
701f094a59 2to3 -f except -w (#315) 2018-04-09 05:55:16 -07:00
Matthew Wall
db6bcc3cad keep PEP happy 2017-02-13 00:13:06 -05:00
Matthew Wall
d1b347fb34 more simplification 2017-02-12 23:53:12 -05:00
Matthew Wall
f23734df99 make output consistent 2017-02-12 23:37:43 -05:00
gjr80
7493536a47 Now picks up absence of windSpeed daily summary 2017-02-06 11:52:25 +10:00
Tom Keffer
f869fd9773 Got the weighting update to work on MySQL 2017-01-22 17:21:39 -08:00
gjr80
15924f1964 Removed vacuum 2017-01-21 01:18:53 +10:00
Tom Keffer
4cb7df6994 Modified weighting fix
Should not mess with lessUpdate
Delete lastWeightPatch after successful patch
2017-01-19 15:28:33 -08:00
gjr80
fcf90e4cb0 Removed the p word, patch.py is now database.py, rejigged wee_database as per skype and followup emails
- 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)
2017-01-19 22:31:06 +10:00
gjr80
9ad9f4bd28 Further refinement
- max and maxtime now updated
- reworked the progress function, now a method in the class

Have left __main__ code in that has been used for testing windSpeed
recalculation fix
2017-01-16 17:28:15 +10:00
gjr80
482efe17aa First cut of de-patching patch.py and adding windSpeed recalculation
- renamed base class to remove use of the term 'patch'
- 1st cut class WindSpeedRecalculation to handle windSpeed recalculation
- interval weighting class yet to be reviewed
- patch.py to be removed in due course
2017-01-15 23:51:50 +10:00