Commit Graph

166 Commits

Author SHA1 Message Date
e99027db46 Freeze requirements 2020-08-06 18:14:24 -04:00
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):
2020-08-06 17:58:41 -04:00
4f3b1d3c60 Cleanup Makefile 2020-08-06 17:32:06 -04:00
9d49d39ff9 Flesh out remaining tests and Python 3 fixes 2020-08-06 17:29:30 -04:00
fe87c3fab4 Fix error detection in nilm-sinefit, and improve test coverage for math.py 2020-08-06 14:53:42 -04:00
8fd511b5df Add nilm-pipewatch test and update for Python 3 2020-08-06 14:28:57 -04:00
8c7713076b Finish trainola testing and porting to Python 3 2020-08-06 13:36:28 -04:00
2c892a9df7 Start test for trainola 2020-08-05 17:08:48 -04:00
0d952584ea Update versioneer 2020-08-05 17:04:58 -04:00
78dc640444 Fix #! at top of shell scripts for py3 and venvs 2020-08-05 17:04:28 -04:00
752d326b77 Add nilm-prep test and updates for Python 3 2020-08-05 16:29:16 -04:00
9f49875969 Add nilm-cleanup test, update for Python 3
Also fix a bug when reporting bad units on "keep" configuration key
2020-08-05 15:32:04 -04:00
05be240564 Add nilm-median test, and update for Python 3 2020-08-05 15:30:28 -04:00
7bed742957 Add nilm-sinefit test, and update for Python 3 2020-08-05 14:26:20 -04:00
3a8c04e04a Add nilm-insert test, and update for Python 3 2020-08-05 14:25:16 -04:00
0fa46c09a9 Add nilm-decimate-auto test 2020-08-05 14:25:16 -04:00
aae4d79eaf Add --max argument for nilm-decimate-auto
This is instead of hardcoding 500
2020-08-05 14:25:16 -04:00
bef2054357 Fix nilm-decimate-auto for Python 3 2020-08-05 14:25:16 -04:00
d8df408ce1 Add nilm-decimate test, and fix support for int64 types 2020-08-05 14:25:16 -04:00
453c015f5e No need to manually encode output for Python 3 2020-08-05 14:25:16 -04:00
feb12ecfc1 Add nilm-copy-wildcard test 2020-08-05 14:25:16 -04:00
060bd8fee3 Fix test order 2020-08-05 14:25:16 -04:00
b1f2a3c5d5 Replace self.raise() with self.fail() + self.contain() in tests 2020-08-04 23:37:33 -04:00
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.
2020-08-04 23:37:24 -04:00
0f9f0ded71 Add test framework, and initial test for nilm-copy 2020-08-04 13:58:07 -04:00
f507e793a2 Run 2to3 over all code 2020-08-04 10:44:02 -04:00
0c1a3449cb Start Python 3 conversion 2020-08-04 10:42:00 -04:00
0cf2db6c5e Fix divide by zero in sinefit 2014-02-14 15:56:52 -05:00
f530edd8a0 sfit4: if interpolated DFT fails, use peak 2013-08-16 15:36:39 -04:00
4d946bee79 Set shell and path in sample cron script 2013-08-16 15:36:20 -04:00
13ceb91999 Add test_sinefit makefile target 2013-08-16 15:36:11 -04:00
dab9625296 Run fsck at startup 2013-08-09 16:03:14 -04:00
3e7527ab57 Support -h and -v in nilm-trainola 2013-08-08 16:30:08 -04:00
31b6d82dfc Make 'make test' do nothing from command line 2013-08-07 20:19:39 -04:00
077010ba3a Store nshift in prep metadata 2013-08-07 20:19:28 -04:00
77751a8529 Fix typo in help text 2013-08-07 18:39:19 -04:00
9c711300a2 Add short form of --force-metadata, -F 2013-08-06 23:07:36 -04:00
74cf34e2ad Update sharon cleanup.cfg 2013-08-06 22:48:06 -04:00
120bf58b85 Support --nometa option for copy_one and copy_wildcard 2013-08-06 22:47:16 -04:00
c26daa9a3b Update crontab 2013-08-03 11:23:43 -04:00
6993f5c886 Fix process termination in nilm-pipewatch 2013-08-03 11:13:30 -04:00
Sharon NILM
dd69f3e51d Update process.sh 2013-08-02 23:19:14 -04:00
dc26e32b6e Make interhost, force_metadata private to Filter 2013-08-02 23:14:19 -04:00
981f23ff14 Better documentation for callback function 2013-08-02 23:14:19 -04:00
492445a469 Split off useful math functions to math.py 2013-08-02 17:27:39 -04:00
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.
2013-07-31 19:12:16 -04:00
c1e0f8ffbc Fix bug in copy_one 2013-07-31 14:47:16 -04:00
d2853bdb0e Add test case for bad trainola detections 2013-07-30 20:35:54 -04:00
a4d4bc22fc Add --skip option to nilm-insert 2013-07-30 18:25:47 -04:00
6090dd6112 prep: only process intervals present in both raw & sinefit 2013-07-30 14:55:06 -04:00