fepegar / torchio
Showing 1 of 1 files from the diff.

@@ -11,7 +11,7 @@
Loading
11 11
            transformed = torch.fft.fftn(tensor)
12 12
            fshift = torch.fft.fftshift(transformed)
13 13
            return fshift
14 -
        except ModuleNotFoundError:
14 +
        except (ModuleNotFoundError, AttributeError):
15 15
            import torch
16 16
            transformed = np.fft.fftn(tensor)
17 17
            fshift = np.fft.fftshift(transformed)
@@ -24,7 +24,7 @@
Loading
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, 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%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading