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