-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathexc.py
More file actions
106 lines (65 loc) · 2.62 KB
/
Copy pathexc.py
File metadata and controls
106 lines (65 loc) · 2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
class MaskException(Exception):
"""
Raises exceptions associated with the `mask` modules and `Mask` classes.
For example if a 2D mask's shape is not of length 2 (and thus not 2D).
"""
pass
class ArrayException(Exception):
"""
Raises exceptions associated with the `structures/array` modules and `Array` classes.
For example if a 2D array's shape and its corresponding 2D mask shape do not match.
"""
pass
class GridException(Exception):
"""
Raises exceptions associated with the `structures/grid` modules and `Grid` classes.
For example if a 2D grid's shape and its corresponding 2D mask shape do not match.
"""
pass
class VectorYXException(Exception):
"""
Raises exceptions associated with the `structures/vectors` modules and `VectorYX` classes.
For example if a 2D vector's shape and its corresponding 2D mask shape do not match.
"""
pass
class KernelException(Exception):
"""
Raises exceptions associated with the `structures/arrays/kernel_2d.py` module and `Convolver` classes.
For example if the kernel has an even-sized number of pixels.
"""
pass
class RegionException(Exception):
"""
Raises exceptions associated with the `layout/region` modules and `Region` classes.
For example if a region is specified where the right-hand x coordinate is less than the left hand x coordinate.
"""
pass
class DatasetException(Exception):
"""
Raises exceptions associated with the `dataset` modules and `Imaging` / `Interferometer` classes.
For example if a noise-map contains NaN values.
"""
pass
class MeshException(Exception):
"""
Raises exceptions associated with the `inversion/mesh` modules and `Mesh` classes.
For example if a `RectangularAdaptDensity` mesh has dimensions below 3x3.
"""
pass
class PixelizationException(Exception):
"""
Raises exceptions associated with the `inversion/pixelization` modules and `Pixelization` classes.
"""
pass
class InversionException(Exception):
"""
Raises exceptions associated with the `inversion/inversion` modules and `Inversion` classes.
For example many numpy linear algebra errors are overwritten with this exception for easy exception handling.
"""
pass
class PlottingException(Exception):
"""
Raises exceptions associated with the `plot` module and classes like `MatWrap` used for plotting.
For example if the plotter type for certain plot objects is not a valid type.
"""
pass