Skip to content

Commit ba100f8

Browse files
committed
Removed stray NAFFlib.py file
1 parent 357d76b commit ba100f8

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

NAFFlib.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

NAFFlib/source/windows.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,14 @@ void cheb_window(double _Complex window[], const size_t N, const double a){
4444

4545
void hann_harm_window(double _Complex window[], const size_t N, const double n)
4646
{
47-
double T1 = 0.;
48-
double T2 = N;
49-
double TM = (T2-T1)/2.;
47+
if( n == 0 )
48+
{
49+
for( size_t i = N; i--; )
50+
window[i] = 1.;
51+
return;
52+
}
53+
54+
double TM = N/2.;
5055
double PIST = pi/TM;
5156

5257
int factorial_1 = 1;

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
setup(
2525
name="NAFFlib",
26-
version="1.0.0",
26+
version="1.0.1",
2727
author="Konstantinos Paraschou",
2828
author_email="[email protected]",
2929
description="A Python-wrapped C library which implements the NAFF algorithm",

0 commit comments

Comments
 (0)