Jim Paris
e99027db46
Freeze requirements
2 years ago
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):
2 years ago
Jim Paris
4f3b1d3c60
Cleanup Makefile
2 years ago
Jim Paris
9d49d39ff9
Flesh out remaining tests and Python 3 fixes
2 years ago
Jim Paris
fe87c3fab4
Fix error detection in nilm-sinefit, and improve test coverage for math.py
2 years ago
Jim Paris
8fd511b5df
Add nilm-pipewatch test and update for Python 3
2 years ago
Jim Paris
8c7713076b
Finish trainola testing and porting to Python 3
2 years ago
Jim Paris
2c892a9df7
Start test for trainola
2 years ago
Jim Paris
0d952584ea
Update versioneer
2 years ago
Jim Paris
78dc640444
Fix #! at top of shell scripts for py3 and venvs
2 years ago
Jim Paris
752d326b77
Add nilm-prep test and updates for Python 3
2 years ago
Jim Paris
9f49875969
Add nilm-cleanup test, update for Python 3
Also fix a bug when reporting bad units on "keep" configuration key
2 years ago
Jim Paris
05be240564
Add nilm-median test, and update for Python 3
2 years ago
Jim Paris
7bed742957
Add nilm-sinefit test, and update for Python 3
2 years ago
Jim Paris
3a8c04e04a
Add nilm-insert test, and update for Python 3
2 years ago
Jim Paris
0fa46c09a9
Add nilm-decimate-auto test
2 years ago
Jim Paris
aae4d79eaf
Add --max argument for nilm-decimate-auto
This is instead of hardcoding 500
2 years ago
Jim Paris
bef2054357
Fix nilm-decimate-auto for Python 3
2 years ago
Jim Paris
d8df408ce1
Add nilm-decimate test, and fix support for int64 types
2 years ago
Jim Paris
453c015f5e
No need to manually encode output for Python 3
2 years ago
Jim Paris
feb12ecfc1
Add nilm-copy-wildcard test
2 years ago
Jim Paris
060bd8fee3
Fix test order
2 years ago
Jim Paris
b1f2a3c5d5
Replace self.raise() with self.fail() + self.contain() in tests
2 years ago
Jim Paris
c15b53924d
Use multiprocessing to start multiple servers in tests
Cherrypy uses a bunch of globals, so use multiprocessing to let us
spawn a few that are totally independent.
2 years ago
Jim Paris
0f9f0ded71
Add test framework, and initial test for nilm-copy
2 years ago
Jim Paris
f507e793a2
Run 2to3 over all code
2 years ago
Jim Paris
0c1a3449cb
Start Python 3 conversion
2 years ago
Jim Paris
0cf2db6c5e
Fix divide by zero in sinefit
9 years ago
Jim Paris
f530edd8a0
sfit4: if interpolated DFT fails, use peak
9 years ago
Jim Paris
4d946bee79
Set shell and path in sample cron script
9 years ago
Jim Paris
13ceb91999
Add test_sinefit makefile target
9 years ago
Jim Paris
dab9625296
Run fsck at startup
9 years ago
Jim Paris
3e7527ab57
Support -h and -v in nilm-trainola
9 years ago
Jim Paris
31b6d82dfc
Make 'make test' do nothing from command line
9 years ago
Jim Paris
077010ba3a
Store nshift in prep metadata
9 years ago
Jim Paris
77751a8529
Fix typo in help text
9 years ago
Jim Paris
9c711300a2
Add short form of --force-metadata, -F
9 years ago
Jim Paris
74cf34e2ad
Update sharon cleanup.cfg
9 years ago
Jim Paris
120bf58b85
Support --nometa option for copy_one and copy_wildcard
9 years ago
Jim Paris
c26daa9a3b
Update crontab
9 years ago
Jim Paris
6993f5c886
Fix process termination in nilm-pipewatch
9 years ago
Sharon NILM
dd69f3e51d
Update process.sh
9 years ago
Jim Paris
dc26e32b6e
Make interhost, force_metadata private to Filter
9 years ago
Jim Paris
981f23ff14
Better documentation for callback function
9 years ago
Jim Paris
492445a469
Split off useful math functions to math.py
9 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.
9 years ago
Jim Paris
c1e0f8ffbc
Fix bug in copy_one
9 years ago
Jim Paris
d2853bdb0e
Add test case for bad trainola detections
9 years ago
Jim Paris
a4d4bc22fc
Add --skip option to nilm-insert
9 years ago
Jim Paris
6090dd6112
prep: only process intervals present in both raw & sinefit
9 years ago