Jim Paris
cfc66b6847
Fix flake8 errors throughout code
This found a small number of real bugs too, for example,
this one that looked weird because of a 2to3 conversion,
but was wrong both before and after:
- except IndexError as TypeError:
+ except (IndexError, TypeError):
8 months ago
Jim Paris
9d49d39ff9
Flesh out remaining tests and Python 3 fixes
8 months ago
Jim Paris
fe87c3fab4
Fix error detection in nilm-sinefit, and improve test coverage for math.py
8 months ago
Jim Paris
8fd511b5df
Add nilm-pipewatch test and update for Python 3
8 months ago
Jim Paris
8c7713076b
Finish trainola testing and porting to Python 3
8 months ago
Jim Paris
2c892a9df7
Start test for trainola
8 months ago
Jim Paris
0d952584ea
Update versioneer
8 months ago
Jim Paris
78dc640444
Fix #! at top of shell scripts for py3 and venvs
8 months ago
Jim Paris
752d326b77
Add nilm-prep test and updates for Python 3
8 months ago
Jim Paris
9f49875969
Add nilm-cleanup test, update for Python 3
Also fix a bug when reporting bad units on "keep" configuration key
8 months ago
Jim Paris
7bed742957
Add nilm-sinefit test, and update for Python 3
8 months ago
Jim Paris
3a8c04e04a
Add nilm-insert test, and update for Python 3
8 months ago
Jim Paris
0fa46c09a9
Add nilm-decimate-auto test
8 months ago
Jim Paris
aae4d79eaf
Add --max argument for nilm-decimate-auto
This is instead of hardcoding 500
8 months ago
Jim Paris
bef2054357
Fix nilm-decimate-auto for Python 3
8 months ago
Jim Paris
d8df408ce1
Add nilm-decimate test, and fix support for int64 types
8 months ago
Jim Paris
453c015f5e
No need to manually encode output for Python 3
8 months ago
Jim Paris
feb12ecfc1
Add nilm-copy-wildcard test
8 months ago
Jim Paris
0f9f0ded71
Add test framework, and initial test for nilm-copy
8 months ago
Jim Paris
f507e793a2
Run 2to3 over all code
8 months ago
Jim Paris
0c1a3449cb
Start Python 3 conversion
8 months ago
Jim Paris
0cf2db6c5e
Fix divide by zero in sinefit
7 years ago
Jim Paris
f530edd8a0
sfit4: if interpolated DFT fails, use peak
7 years ago
Jim Paris
3e7527ab57
Support -h and -v in nilm-trainola
7 years ago
Jim Paris
077010ba3a
Store nshift in prep metadata
7 years ago
Jim Paris
77751a8529
Fix typo in help text
7 years ago
Jim Paris
9c711300a2
Add short form of --force-metadata, -F
7 years ago
Jim Paris
120bf58b85
Support --nometa option for copy_one and copy_wildcard
7 years ago
Jim Paris
6993f5c886
Fix process termination in nilm-pipewatch
7 years ago
Jim Paris
dc26e32b6e
Make interhost, force_metadata private to Filter
7 years ago
Jim Paris
981f23ff14
Better documentation for callback function
7 years ago
Jim Paris
492445a469
Split off useful math functions to math.py
7 years ago
Jim Paris
33c3586bea
trainola: suppress peaks if larger ones are nearby
Might fix the problem Mark noticed where turn-off transients
are erroneously matching the drop that follows startup transients.
7 years ago
Jim Paris
c1e0f8ffbc
Fix bug in copy_one
7 years ago
Jim Paris
a4d4bc22fc
Add --skip option to nilm-insert
7 years ago
Jim Paris
6090dd6112
prep: only process intervals present in both raw & sinefit
7 years ago
Jim Paris
cf2c28b0fb
Add --daemon flag
7 years ago
Jim Paris
87a26c907b
Watch for process termination too
7 years ago
Jim Paris
def465b57c
Improve pipewatch; add nilm-pipewatch script
7 years ago
Jim Paris
0589b8d316
start of pipewatch util
7 years ago
Jim Paris
62e11a11c0
Fix issue with column ordering in the exemplars
If the max scale in the exemplar was a column we weren't using, it
would bail out when looking for that correlation later. Change things
around so exemplars in RAM only keep around the columns we care about.
7 years ago
Jim Paris
2bdcee2c36
More helpful error if exemplar stream doesn't exist
7 years ago
Jim Paris
6dce8c5296
More output
7 years ago
Jim Paris
25c35a56f6
Trainola inserts into the destination stream now
7 years ago
Jim Paris
d610deaef0
More trainola work
7 years ago
Jim Paris
d7d5ccc9a7
More filter cleanup
7 years ago
Jim Paris
f28753ff5c
Move process_numpy_interval outside the class
7 years ago
Jim Paris
c9c2e0d5a8
Improve split between process_numpy and process_numpy_interval
7 years ago
Jim Paris
5a2a32bec5
WIP on trainola improvements
7 years ago
Jim Paris
706c3933f9
Add trainola from nilmrun
7 years ago