Jim Paris
9c711300a2
Add short form of --force-metadata, -F
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
6090dd6112
prep: only process intervals present in both raw & sinefit
9 years ago
Jim Paris
d7d5ccc9a7
More filter cleanup
9 years ago
Jim Paris
f28753ff5c
Move process_numpy_interval outside the class
9 years ago
Jim Paris
c9c2e0d5a8
Improve split between process_numpy and process_numpy_interval
9 years ago
Jim Paris
cfd1719152
Use nilmdb.utils.interval.optimize; bump nilmdb min version
9 years ago
Jim Paris
57d856f2fa
Split filter.py internals up a little more
This makes it easier to use the filter stuff from other code, but it's
also turning it into more of a spaghetti nightmare. Might not be
worth continuing down this path.
9 years ago
Jim Paris
5d83d93019
Rename src/ directory to nilmtools/
9 years ago
Jim Paris
5f847a0513
Split process_numpy innards process_numpy_interval
9 years ago
Jim Paris
83ad18ebf6
Fix non-string arguments to metadata_check
9 years ago
Jim Paris
c76d527f95
Fix unicode handling in filter metadata match
9 years ago
Jim Paris
8ab31eafc2
Allow shorthand method for creating an option-less parser.
This is mostly just intended to make a simple filter example shorter.
9 years ago
Jim Paris
5547d266d0
filter: Don't include trailing unprocessed data in the inserted intervals
9 years ago
Jim Paris
ffd6675979
Remove outdated code
9 years ago
Jim Paris
3323c997a7
Use the new stream_insert_numpy_context function
9 years ago
Jim Paris
e09153e34b
Use the new NumpyClient for extracting data in filter
9 years ago
Jim Paris
5c56e9d075
Remove ounused process_python function
9 years ago
Jim Paris
d6d31190eb
Fix fromstring usage
9 years ago
Jim Paris
2ec574c59d
Use np.fromstring instead of np.loadtxt
9 years ago
Jim Paris
9e321d9e41
Add --force-metadata option; fix bugs
9 years ago
Jim Paris
d919a73387
Use parser error rather than systemexit exception
9 years ago
Jim Paris
05da75e34a
Allow processing 0 lines; warn if data is building up
9 years ago
Jim Paris
56e778df71
Add skip_paths option to filter.setup_parser
9 years ago
Jim Paris
87178e9599
self.args is used for other stuff in an exception
9 years ago
Jim Paris
7e88da3c26
Bring get_stream_info into nilmtools.filter module; use it
9 years ago
Jim Paris
b637f17887
Add nilm-decimate-auto script
9 years ago
Jim Paris
9a7a1df537
Simplify StreamInfo constructor
9 years ago
Jim Paris
101b701882
Fix sys.argv stuff; remove outdated shell scripts
9 years ago
Jim Paris
3eff3d81fe
Change default URL to http://localhost/nilmdb/
9 years ago
Jim Paris
a56dc22030
Allow arguments to be passed in as a list to main() functions
9 years ago
Jim Paris
4e5907f381
Send pending data after each block
9 years ago
Jim Paris
9078a014ae
Require 2-dimensional array in insert_function
9 years ago
Jim Paris
a984e54f23
Add process_numpy function to filter.py
This converts data into big Numpy arrays and lets the user-provided
function process as much as they'd like at a time.
9 years ago
Jim Paris
0f1e442cd4
Support filtering (or copying) between two different hosts
9 years ago
Jim Paris
3e78da12dc
Rename copy.py to avoid stupid Python conflicts
Any other module (in this case, nilmdb -> datetime_tz -> pytz -> gettext)
that does an "import copy" would pull in the copy.py, if it's in the
current working directory. Python is dumb...
9 years ago
Jim Paris
ef9277cbff
Rename nilmtools directory to just src
9 years ago
Jim Paris
e73dd313d5
Reworked things to match nilmdb updates; a bit faster
9 years ago
Jim Paris
2b9ecc6697
Add nilm-copy tool
9 years ago
Jim Paris
54f8c34f8e
Decimate seems to work pretty well right now
9 years ago
Jim Paris
9d38d6c21b
work in progress
9 years ago
Jim Paris
4243301434
Lots of updates to generic filter, specific decimate module
9 years ago
Jim Paris
cf9df650aa
Large restructuring, added setup
Added setup.py and other build tools like versioneer.
Split functionlaity into modules so that new filters are easier to
write.
9 years ago