No flags found
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
54cd1d6
... +1 ...
77af571
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
11 | 11 | transformed = torch.fft.fftn(tensor) |
|
12 | 12 | fshift = torch.fft.fftshift(transformed) |
|
13 | 13 | return fshift |
|
14 | - | except ModuleNotFoundError: |
|
14 | + | except ModuleNotFoundError or AttributeError: |
|
15 | 15 | import torch |
|
16 | 16 | transformed = np.fft.fftn(tensor) |
|
17 | 17 | fshift = np.fft.fftshift(transformed) |
24 | 24 | f_ishift = torch.fft.ifftshift(tensor) |
|
25 | 25 | img_back = torch.fft.ifftn(f_ishift) |
|
26 | 26 | return img_back |
|
27 | - | except ModuleNotFoundError: |
|
27 | + | except ModuleNotFoundError or AttributeError: |
|
28 | 28 | import torch |
|
29 | 29 | f_ishift = np.fft.ifftshift(tensor) |
|
30 | 30 | img_back = np.fft.ifftn(f_ishift) |
Files | Coverage |
---|---|
src/torchio | 86.19% |
Project Totals (92 files) | 86.19% |
#969
77af571
9fad0e8
54cd1d6