Skip to content

Commit 731e318

Browse files
committed
update selection of interpolation methods
- replace `'none'` with `blackman`
1 parent 9026dba commit 731e318

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

scripts/interpolations.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
import matplotlib.pyplot as plt
22
import numpy as np
33

4-
methods = [None, 'none', 'nearest', 'bilinear', 'bicubic', 'spline16',
5-
'spline36', 'hanning', 'hamming', 'hermite', 'kaiser', 'quadric',
6-
'catrom', 'gaussian', 'bessel', 'mitchell', 'sinc', 'lanczos']
4+
5+
methods = [
6+
None, 'nearest', 'bilinear',
7+
'bicubic', 'spline16', 'spline36',
8+
'hanning', 'hamming', 'hermite',
9+
'kaiser', 'quadric', 'catrom',
10+
'gaussian', 'bessel', 'mitchell',
11+
'sinc', 'lanczos', 'blackman'
12+
]
713

814
np.random.seed(1)
915
Z = np.random.uniform(0,1,(3,3))

0 commit comments

Comments
 (0)