Browse Source

Fix off-by-one error in prep rotation

tags/nilmtools-1.0.2
Jim Paris 9 years ago
parent
commit
aa9656bc10
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/prep.py

+ 1
- 1
src/prep.py View File

@@ -111,7 +111,7 @@ def process(data, interval, args, insert_function, final):
# Fill output data
out[0, 0] = t_min
for k in range(nharm):
Fk = F[2 * k + 1] * e**(rotation * 1j * k)
Fk = F[2 * k + 1] * e**(rotation * 1j * (k+1))
out[0, 2 * k + 1] = -imag(Fk) # Pk
out[0, 2 * k + 2] = real(Fk) # Qk



Loading…
Cancel
Save