mirror of
https://github.com/cdtools-developers/cdtools.git
synced 2026-11-15 10:33:57 +01:00
Minor tweak to initializations
This commit is contained in:
1 parent
26148f80cb
commit
ebafc44acb
2 files changed
+14
-7
No files matched your search
@@ -633,7 +633,7 @@ def generate_subdominant_modes(dominant_mode, n_modes, circular=True):
|
||||
dominant_fft = far_field(dominant_mode)
|
||||
|
||||
shape = dominant_mode.shape
|
||||
center = ((shape[-2]-1)//2, (shape[-1]-1)//2)
|
||||
center = ((shape[-2])//2, (shape[-1])//2)
|
||||
|
||||
i, j = np.mgrid[:shape[-2], :shape[-1]]
|
||||
i = t.tensor(i - center[0]).to(dtype=dominant_fft.dtype,
|
||||
|
||||
Reference in new issue
Block a user