Browse Source

Warn if column count is wrong for this nharm value

tags/nilmtools-1.1.3
Jim Paris 11 years ago
parent
commit
b72d6b6908
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/prep.py

+ 4
- 0
src/prep.py View File

@@ -46,6 +46,10 @@ def main(argv = None):
print " nilmtool -u %s create %s %s" % (e.dest.url, e.dest.path, rec)
raise SystemExit(1)

if f.dest.layout_count != args.nharm * 2:
print "error: need", args.nharm*2, "columns in destination stream"
raise SystemExit(1)

# Check arguments
if args.column is None or args.column < 1:
parser.error("need a column number >= 1")


Loading…
Cancel
Save