Tom Keffer
c06c7b442f
The Python 2 version of ListOfDicts now returns an iterator,
...
instead of a list.
NB: The iteration order of the Py2 version is the opposite of the Py3 version: it's first to last, rather than last to first.
Regression tests.
2022-02-22 06:25:55 -08:00
Tom Keffer
cad519c0b8
Raise an error, not return it.
...
Also, use a type valid in the context.
Regression test.
2022-02-04 13:47:49 -08:00
Tom Keffer
a00650583b
Add option 'boundary' to $span().
...
If set to 'midnight', then the starting time will be set to the previous midnight.
2022-01-21 15:45:27 -08:00
Tom Keffer
6907fda60e
Tests for function nominal_spans()
2022-01-04 16:26:45 -08:00
Tom Keffer
45db27eb72
Tests for class TimeDerivative
2022-01-04 16:06:43 -08:00
Tom Keffer
b5bda93d07
Removed the no-longer-used function secs_to_string().
2021-12-14 15:11:47 -08:00
Tom Keffer
d0424bdad4
Minor reformatting
2021-12-14 11:08:07 -08:00
Tom Keffer
c63f1f98bc
Introduced method is_iterable() to check for sequences that are not strings.
...
Expanded test coverage.
2021-12-14 11:02:33 -08:00
Tom Keffer
41da5c38fd
Allow arbitrary page batch size.
...
Add documentation.
Log in change log.
See PR #693 .
2021-09-23 16:14:11 -07:00
Tom Keffer
585637358b
rounder(1.23,0) now returns 1, an int.
2021-03-30 02:07:51 -07:00
Tom Keffer
8c4f241293
.raw is now back to being a property.
...
Introduced SLE helper function $rnd()
2021-03-21 08:27:53 -07:00
Tom Keffer
624fb9e9fa
Fixed problem that could cause reporting to fail under Python2.7 if the configuration dictionary contained a comment with a UTF-8 character.
...
Fixes issue #639
2021-01-16 09:42:53 -08:00
Tom Keffer
08de8792ef
Document PR #597 . Add tests.
2020-08-29 12:37:45 -07:00
Tom Keffer
b6905e5ac7
Yet another version of deep_copy().
...
Readdresses issue #579
2020-07-15 08:26:52 -07:00
Tom Keffer
6e052d1dd0
Modified deep_copy() so it does not have to turn interpolation off.
...
Really fixes issue #579 .
2020-06-29 15:20:03 -07:00
Tom Keffer
b6d2424482
Fixed problem caused by specifying a [Logging]/[[formatters]] section in
...
weewx.conf that uses interpolated variables.
2020-06-02 15:03:28 -07:00
Tom Keffer
5a552a7eb2
Refactor, to create a config_from_str() function.
2020-01-24 07:07:57 -08:00
tkeffer@gmail.com
a0fecfaced
Added tests for main module.
...
This allows these files to be used by PyCharm's unittest facility
2020-01-09 05:01:16 -07:00
Tom Keffer
15c7cd83e2
Change how archive timespans get calculated. Fixes issue #469 .
...
This allows oddball archive intervals.
2019-11-22 09:26:51 -08:00
Tom Keffer
178114d0ba
Fix problem under Python 2, sensing unicode value of 'NONE'
2019-11-19 08:40:15 -08:00
Tom Keffer
031fd1e1b5
Benchmark for creating extensible types
2019-09-26 10:57:28 -07:00
Tom Keffer
7ca87afc95
Moved the bound method test of ExtendedTypes to test_xtypes.py
2019-09-05 17:00:56 -07:00
Tom Keffer
7acd4328c7
Refactored. Moved PressureCooker to wxformulas.py
2019-09-05 16:56:54 -07:00
Tom Keffer
91a56f892c
Added tests for pressure, including using a bound method
2019-09-05 16:13:20 -07:00
Tom Keffer
a6f0497ea9
Test _get_temperature_12h_F()
2019-09-05 14:19:26 -07:00
Tom Keffer
ece9a603fd
Checkpoint while writing ExtendedTypes
2019-09-05 14:05:24 -07:00
Tom Keffer
1f363e0dba
Regression test for option_as_list() change
2019-06-23 05:12:54 -07:00
Tom Keffer
77480391d0
Changed name of test subdirectory from 'test' to 'tests'.
2019-03-02 17:26:05 -08:00