Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
47a8eb8
wrap fixes
Jammy2211 Apr 29, 2024
43e6fef
abstract ndarray
Jammy2211 Apr 30, 2024
e833a70
decorator hack fix
Jammy2211 May 13, 2024
48968b9
Merge branch 'main' into feature/jax_wrapper
Jammy2211 Jun 4, 2024
f471f47
Merge branch 'main' into feature/jax_wrapper
Jammy2211 Jun 10, 2024
84920e5
skip casting to float as jax does not like it
rhayes777 Jun 10, 2024
bafc6da
replicating strange jax issue
rhayes777 Jun 10, 2024
6a6e4d9
fix weird array issue
rhayes777 Jun 10, 2024
b83f20e
Merge pull request #108 from Jammy2211/feature/jax_bool_issue
Jammy2211 Jun 10, 2024
5ead7cf
Merge branch 'main' into feature/jax_wrapper
Jammy2211 Jun 25, 2024
23dd826
Add JAX path for `convolve_image`
CKrawczyk Jun 27, 2024
7aa1c1c
Make sure `.array` is called on inputs
CKrawczyk Jun 27, 2024
4f077fd
Merge branch 'main' into feature/jax_wrapper
Jammy2211 Jul 19, 2024
5580992
remove print
Jammy2211 Jul 24, 2024
0bfa0e5
Merge branch 'main' into feature/jax_wrapper
rhayes777 Aug 12, 2024
a7d571c
Merge branch 'feature/jax_cleaning' into feature/jax_wrapper
rhayes777 Aug 12, 2024
65f3bff
use jax_wrapper in util
rhayes777 Aug 12, 2024
df7bd38
Adjust numpy to jax.numpy imports for files used for the MGE Sersic
CKrawczyk Sep 18, 2024
4b6d157
Merge pull request #127 from Jammy2211/feature/jax-mge
CKrawczyk Sep 19, 2024
cfdf9ad
Merge branch 'feature/jax_improvements' into temp
rhayes777 Sep 20, 2024
c1a16ee
specify sizes
rhayes777 Sep 20, 2024
2aca124
use jax wrapper
rhayes777 Sep 20, 2024
76258e7
fix import
rhayes777 Sep 20, 2024
6db4e81
merge
rhayes777 Sep 20, 2024
9289192
Merge branch 'main' into temp
rhayes777 Sep 30, 2024
dd3c629
unused import
rhayes777 Sep 30, 2024
11cf911
use nansum to account of area of jax triangles
rhayes777 Sep 30, 2024
d0f2a96
Merge branch 'feature/jax_fixes' into feature/jax_triangles
rhayes777 Sep 30, 2024
a435c68
kwargs to fix interface
rhayes777 Sep 30, 2024
4416648
ensure max array size is passed
rhayes777 Sep 30, 2024
8506c6f
Merge branch 'main' into feature/jax_triangles
rhayes777 Sep 30, 2024
ec6c317
Merge branch 'main' into feature/jax_wrapper
rhayes777 Sep 30, 2024
81774a0
unused import[
rhayes777 Sep 30, 2024
6c2e9a1
use array version of jax wrapper to avoid build error
rhayes777 Sep 30, 2024
478317a
Small update
CKrawczyk Oct 3, 2024
eb67212
Merge pull request #131 from Jammy2211/feature/jax-mge
CKrawczyk Oct 3, 2024
8d95379
Merge branch 'feature/jax_wrapper' of github.com:Jammy2211/PyAutoArra…
Jammy2211 Oct 3, 2024
d357452
Merge branch 'main' into feature/jax_wrapper
Jammy2211 Oct 3, 2024
f532690
preloads removed
Jammy2211 Oct 3, 2024
5f9b6ff
complete removal of preloads
Jammy2211 Oct 3, 2024
280d574
black
Jammy2211 Oct 3, 2024
ad52802
Merge branch 'main' into feature/jax_triangles
rhayes777 Oct 11, 2024
e3a73ee
Merge branch 'feature/jax_wrapper' into feature/jax_triangles
rhayes777 Oct 11, 2024
2143e94
Merge pull request #130 from Jammy2211/feature/jax_triangles
rhayes777 Oct 11, 2024
c597f33
Merge pull request #132 from Jammy2211/feature/jax_remove_preload
Jammy2211 Oct 25, 2024
e641904
Wrap class as PyTree
CKrawczyk Oct 25, 2024
f4da19e
Merge pull request #137 from Jammy2211/feature/jax_tracer
CKrawczyk Oct 25, 2024
6cbfa7d
Changes needed for critical curve calculations
CKrawczyk Nov 4, 2024
9331755
Merge pull request #141 from Jammy2211/feature/jax_critical_curves
CKrawczyk Nov 4, 2024
f95c28f
merge jax wrapper
rhayes777 Nov 11, 2024
311f7cd
Merge pull request #143 from Jammy2211/feature/coordinate_jax
rhayes777 Nov 11, 2024
b054a45
merge in jax wrapper changes
rhayes777 Dec 16, 2024
1e2cc67
fix
rhayes777 Dec 16, 2024
c4962c9
fix jit on mask_2d_circular_from
ickc Dec 19, 2024
ba31c1c
use indices instead of mgrid
ickc Dec 19, 2024
42f688c
more conflicts with main resolved
Jammy2211 Jan 22, 2025
40be8b1
Merge pull request #158 from ickc/feature/jax_wrapper-mask_2d_circula…
Jammy2211 Jan 22, 2025
393d273
Merge branch 'main' into feature/jax_merge
Jammy2211 Mar 13, 2025
9947093
Merge pull request #157 from Jammy2211/feature/jax_merge
Jammy2211 Mar 13, 2025
64d16b6
remove static args
Jammy2211 Mar 13, 2025
7f869aa
mask circular converts and some aspect simplified
Jammy2211 Mar 15, 2025
581aa75
mask_circular_annular_from converted
Jammy2211 Mar 15, 2025
ed60fda
update typing
Jammy2211 Mar 15, 2025
1460984
remove anti annular
Jammy2211 Mar 15, 2025
c4fe49f
move from pixel coordinates
Jammy2211 Mar 15, 2025
a5544b4
mask_2d_elliptical_From
Jammy2211 Mar 15, 2025
36b6d35
mask_2d_elliptical_annular_from
Jammy2211 Mar 15, 2025
ec8ca60
simplify tests to not include centre
Jammy2211 Mar 15, 2025
943ff40
blurring_mask_2d_from
Jammy2211 Mar 15, 2025
61bc511
merge
Jammy2211 Mar 24, 2025
4bb4a8e
merge
Jammy2211 Mar 24, 2025
0290b84
check on blurring mask now works
Jammy2211 Mar 30, 2025
744e2ed
improve mask 2d util docs
Jammy2211 Mar 30, 2025
affea87
remove mask_2d_via_shape_native_and_native_for_slim
Jammy2211 Mar 30, 2025
4cd2971
mask_slim_indexes_from
Jammy2211 Mar 30, 2025
06a9ec3
edge_1d_indexes_from
Jammy2211 Mar 31, 2025
39fc173
border_slim_indexes_from
Jammy2211 Mar 31, 2025
3066c77
all numba decorators removed
Jammy2211 Mar 31, 2025
b317010
fix mask tests by using ==
Jammy2211 Mar 31, 2025
e1899b4
fix more tests using ==
Jammy2211 Mar 31, 2025
cb5f13b
fixes to get basic func_grad to work
Jammy2211 Mar 31, 2025
15bf0db
progress stopped at convolver
Jammy2211 Apr 1, 2025
d3649ff
updated grid_2d_slim_via_mask_from to be JAX implementation
Jammy2211 Apr 1, 2025
adf5ead
remove numba from grid_2d_centre_from
Jammy2211 Apr 1, 2025
31cdd33
remove numba from pixel_coordinates_2d_from -> fixes is circular
Jammy2211 Apr 1, 2025
ff1e811
fixing grid_2d_slim_over_sampled_via_mask_from to use numba
Jammy2211 Apr 1, 2025
b322a3f
removed use of use_jax in one function
Jammy2211 Apr 1, 2025
9e3c76c
grid_pixels_2d_slim_from now uses native numpy, could support JAX
Jammy2211 Apr 1, 2025
ead617e
grid_pixel_centres_2d_slim_from, could support JAX
Jammy2211 Apr 1, 2025
2769aaf
grid_pixel_indexes_2d_slim_from, could support JAX
Jammy2211 Apr 1, 2025
b2ba6bd
grid_scaled_2d_slim_from, could support JAX
Jammy2211 Apr 1, 2025
0532104
grid_pixel_centres_2d_from, could support JAX
Jammy2211 Apr 1, 2025
d90ff2e
explciit separate imports
Jammy2211 Apr 1, 2025
59b21e9
fix unit test in test__transform_2d_grid_from_reference_frame
Jammy2211 Apr 1, 2025
c453a3c
use absolute tolerance to fix geomtry util unit tests
Jammy2211 Apr 1, 2025
0c4bb30
fix test__pixel_coordinates_2d_from
Jammy2211 Apr 1, 2025
d891947
cleaned up jax imports of array_2d_util to make more tests pass
Jammy2211 Apr 1, 2025
ea7aa9d
cleanup imports of grid_2d_util
Jammy2211 Apr 1, 2025
4014d03
convert methods in grid_2d_util assume ndarray
Jammy2211 Apr 1, 2025
075654f
more simlpifying of convert functions
Jammy2211 Apr 1, 2025
17817b8
mask derive fixed
Jammy2211 Apr 1, 2025
b76cc9a
another way to make hecks only use ndarray
Jammy2211 Apr 1, 2025
c9e275d
fixes which ensure grad works on real LH function
Jammy2211 Apr 1, 2025
70c0212
fix all uniform_2d unit tests
Jammy2211 Apr 1, 2025
c417511
fix all of kernel 2d
Jammy2211 Apr 1, 2025
db9cfb7
fix repr
Jammy2211 Apr 1, 2025
3cb3f76
remove relocate_to_radial_minimum test as all functionality is to be …
Jammy2211 Apr 1, 2025
467d1ea
fix Grid2D test_unifrom
Jammy2211 Apr 1, 2025
7751080
fix grid test_uniform_1d
Jammy2211 Apr 1, 2025
f4c3269
hammer hammer hammer
Jammy2211 Apr 1, 2025
bbed38d
Update autoarray/plot/multi_plotters.py
rhayes777 Apr 2, 2025
1da50f4
Merge pull request #163 from Jammy2211/feature/mask_2d_util_to_numpy
Jammy2211 Apr 2, 2025
8d2b338
fix over sampler test
Jammy2211 Apr 2, 2025
a331718
merge
Jammy2211 Apr 2, 2025
70843c0
mrge succcess
Jammy2211 Apr 2, 2025
d0c324b
Merge pull request #165 from Jammy2211/feature/jax_and_numba
Jammy2211 Apr 2, 2025
e2ddf0f
removal of convolver and switch to psf where required
Jammy2211 Apr 2, 2025
0b4763c
cleaned up test_kernel_2d
Jammy2211 Apr 2, 2025
5762fcf
remopve convolved_array_with_mask_From
Jammy2211 Apr 2, 2025
6fa35a6
simplify jax_convolve
Jammy2211 Apr 2, 2025
0386bdd
test__convolve_image
Jammy2211 Apr 2, 2025
537b5ef
convolve_image now only uses JAX
Jammy2211 Apr 2, 2025
27bf06a
fix test on array shape
Jammy2211 Apr 2, 2025
44cd415
convolve_image_no_blurring
Jammy2211 Apr 2, 2025
4e0b925
maapping matrix convolve works
Jammy2211 Apr 2, 2025
731fcb5
black
Jammy2211 Apr 2, 2025
ef5ba9e
finish
Jammy2211 Apr 2, 2025
c9268b2
Merge pull request #166 from Jammy2211/feature/remove_convolver
Jammy2211 Apr 3, 2025
33a3ccb
fix some decorator unit tests
Jammy2211 Apr 3, 2025
8b8dc9e
removing numpy wrapper to do explicit impots
Jammy2211 Apr 3, 2025
7115f9c
move relocate radial
Jammy2211 Apr 3, 2025
6f02715
more removal of numpy wrapper nps
Jammy2211 Apr 3, 2025
aa4c9e6
remove all numpy wrappers
Jammy2211 Apr 3, 2025
3b6ab48
remove warning for now
Jammy2211 Apr 3, 2025
44a2808
fix structure plotters
Jammy2211 Apr 3, 2025
ea139fc
clean up vectors_yx
Jammy2211 Apr 3, 2025
ec1e81e
remove autofit imports
Jammy2211 Apr 3, 2025
37e81f1
fix voronoi unit test in structures
Jammy2211 Apr 3, 2025
b31c0fc
fix test_preprocess
Jammy2211 Apr 4, 2025
80fc8e8
fix test dataset abstract
Jammy2211 Apr 4, 2025
cd276cd
fix test imaging
Jammy2211 Apr 4, 2025
f6dfda5
fix layout
Jammy2211 Apr 4, 2025
5430647
fix plot unit tests
Jammy2211 Apr 4, 2025
083ed0b
over sampling unit tests
Jammy2211 Apr 4, 2025
72af86b
fix all fit tests
Jammy2211 Apr 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions autoarray/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from . import fixtures
from . import mock as m
from .numba_util import profile_func
from .preloads import Preloads
from .dataset import preprocess
from .dataset.abstract.dataset import AbstractDataset
from .dataset.abstract.w_tilde import AbstractWTilde
Expand Down Expand Up @@ -55,8 +54,6 @@
from .mask.derive.grid_2d import DeriveGrid2D
from .mask.mask_1d import Mask1D
from .mask.mask_2d import Mask2D
from .operators.convolver import Convolver
from .operators.convolver import Convolver
from .operators.transformer import TransformerDFT
from .operators.transformer import TransformerNUFFT
from .operators.over_sampling.decorator import over_sample
Expand Down
20 changes: 10 additions & 10 deletions autoarray/abstract_ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

from abc import ABC
from abc import abstractmethod
import numpy as np
import jax.numpy as jnp

from autoconf.fitsable import output_to_fits

from autoarray.numpy_wrapper import numpy as npw, register_pytree_node, Array
from autoarray.numpy_wrapper import register_pytree_node, Array

from typing import TYPE_CHECKING

Expand Down Expand Up @@ -83,7 +83,7 @@ def __init__(self, array):

def invert(self):
new = self.copy()
new._array = np.invert(new._array)
new._array = jnp.invert(new._array)
return new

@classmethod
Expand All @@ -105,7 +105,7 @@ def instance_flatten(cls, instance):
@staticmethod
def flip_hdu_for_ds9(values):
if conf.instance["general"]["fits"]["flip_for_ds9"]:
return np.flipud(values)
return jnp.flipud(values)
return values

@classmethod
Expand All @@ -114,11 +114,11 @@ def instance_unflatten(cls, aux_data, children):
Unflatten a tuple of attributes (i.e. a pytree) into an instance of an autoarray class
"""
instance = cls.__new__(cls)
for key, value in zip(aux_data, children[1:]):
for key, value in zip(aux_data, children):
setattr(instance, key, value)
return instance

def with_new_array(self, array: np.ndarray) -> "AbstractNDArray":
def with_new_array(self, array: jnp.ndarray) -> "AbstractNDArray":
"""
Copy this object but give it a new array.

Expand Down Expand Up @@ -165,7 +165,7 @@ def __iter__(self):

@to_new_array
def sqrt(self):
return np.sqrt(self._array)
return jnp.sqrt(self._array)

@property
def array(self):
Expand Down Expand Up @@ -331,13 +331,13 @@ def __getitem__(self, item):
result = self._array[item]
if isinstance(item, slice):
result = self.with_new_array(result)
if isinstance(result, np.ndarray):
if isinstance(result, jnp.ndarray):
result = self.with_new_array(result)
return result

def __setitem__(self, key, value):
if isinstance(key, (np.ndarray, AbstractNDArray, Array)):
self._array = npw.where(key, value, self._array)
if isinstance(key, (jnp.ndarray, AbstractNDArray, Array)):
self._array = jnp.where(key, value, self._array)
else:
self._array[key] = value

Expand Down
3 changes: 0 additions & 3 deletions autoarray/config/general.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,3 @@ pixelization:
voronoi_nn_max_interpolation_neighbors: 300
structures:
native_binned_only: false # If True, data structures are only stored in their native and binned format. This is used to reduce memory usage in autocti.
test:
preloads_check_threshold: 1.0 # If the figure of merit of a fit with and without preloads is greater than this threshold, the check preload test fails and an exception raised for a model-fit.

3 changes: 0 additions & 3 deletions autoarray/config/grids.yaml

This file was deleted.

58 changes: 21 additions & 37 deletions autoarray/dataset/imaging/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from autoarray.dataset.grids import GridsDataset
from autoarray.dataset.imaging.w_tilde import WTildeImaging
from autoarray.structures.arrays.uniform_2d import Array2D
from autoarray.operators.convolver import Convolver
from autoarray.structures.arrays.kernel_2d import Kernel2D
from autoarray.mask.mask_2d import Mask2D
from autoarray import type as ty
Expand All @@ -30,7 +29,7 @@ def __init__(
noise_covariance_matrix: Optional[np.ndarray] = None,
over_sample_size_lp: Union[int, Array2D] = 4,
over_sample_size_pixelization: Union[int, Array2D] = 4,
pad_for_convolver: bool = False,
pad_for_psf: bool = False,
use_normalized_psf: Optional[bool] = True,
check_noise_map: bool = True,
):
Expand Down Expand Up @@ -77,7 +76,7 @@ def __init__(
over_sample_size_pixelization
How over sampling is performed for the grid which is associated with a pixelization, which is therefore
passed into the calculations performed in the `inversion` module.
pad_for_convolver
pad_for_psf
The PSF convolution may extend beyond the edges of the image mask, which can lead to edge effects in the
convolved image. If `True`, the image and noise-map are padded to ensure the PSF convolution does not
extend beyond the edge of the image.
Expand All @@ -90,9 +89,9 @@ def __init__(

self.unmasked = None

self.pad_for_convolver = pad_for_convolver
self.pad_for_psf = pad_for_psf

if pad_for_convolver and psf is not None:
if pad_for_psf and psf is not None:
try:
data.mask.derive_mask.blurring_from(
kernel_shape_native=psf.shape_native
Expand Down Expand Up @@ -162,11 +161,15 @@ def __init__(

if psf is not None and use_normalized_psf:
psf = Kernel2D.no_mask(
values=psf.native, pixel_scales=psf.pixel_scales, normalize=True
values=psf.native._array, pixel_scales=psf.pixel_scales, normalize=True
)

self.psf = psf

if psf is not None:
if psf.mask.shape[0] % 2 == 0 or psf.mask.shape[1] % 2 == 0:
raise exc.KernelException("Kernel2D Kernel2D must be odd")

@cached_property
def grids(self):
return GridsDataset(
Expand All @@ -176,25 +179,6 @@ def grids(self):
psf=self.psf,
)

@cached_property
def convolver(self):
"""
Returns a `Convolver` from a mask and 2D PSF kernel.

The `Convolver` stores in memory the array indexing between the mask and PSF, enabling efficient 2D PSF
convolution of images and matrices used for linear algebra calculations (see `operators.convolver`).

This uses lazy allocation such that the calculation is only performed when the convolver is used, ensuring
efficient set up of the `Imaging` class.

Returns
-------
Convolver
The convolver given the masked imaging data's mask and PSF.
"""

return Convolver(mask=self.mask, kernel=self.psf)

@cached_property
def w_tilde(self):
"""
Expand All @@ -220,9 +204,9 @@ def w_tilde(self):
indexes,
lengths,
) = inversion_imaging_util.w_tilde_curvature_preload_imaging_from(
noise_map_native=np.array(self.noise_map.native),
kernel_native=np.array(self.psf.native),
native_index_for_slim_index=self.mask.derive_indexes.native_for_slim,
noise_map_native=np.array(self.noise_map.native.array).astype("float64"),
kernel_native=np.array(self.psf.native.array).astype("float64"),
native_index_for_slim_index=np.array(self.mask.derive_indexes.native_for_slim).astype("int"),
)

return WTildeImaging(
Expand Down Expand Up @@ -370,7 +354,7 @@ def apply_mask(self, mask: Mask2D) -> "Imaging":
noise_covariance_matrix=noise_covariance_matrix,
over_sample_size_lp=over_sample_size_lp,
over_sample_size_pixelization=over_sample_size_pixelization,
pad_for_convolver=True,
pad_for_psf=True,
)

dataset.unmasked = unmasked_dataset
Expand Down Expand Up @@ -425,20 +409,20 @@ def apply_noise_scaling(
"""

if signal_to_noise_value is None:
noise_map = self.noise_map.native
noise_map[mask == False] = noise_value
noise_map = np.array(self.noise_map.native.array)
noise_map[mask.array == False] = noise_value
else:
noise_map = np.where(
mask == False,
np.median(self.data.native[mask.derive_mask.edge == False])
np.median(self.data.native.array[mask.derive_mask.edge == False])
/ signal_to_noise_value,
self.noise_map.native,
self.noise_map.native.array,
)

if should_zero_data:
data = np.where(np.invert(mask), 0.0, self.data.native)
data = np.where(np.invert(mask.array), 0.0, self.data.native.array)
else:
data = self.data.native
data = self.data.native.array

data_unmasked = Array2D.no_mask(
values=data,
Expand All @@ -463,7 +447,7 @@ def apply_noise_scaling(
noise_covariance_matrix=self.noise_covariance_matrix,
over_sample_size_lp=self.over_sample_size_lp,
over_sample_size_pixelization=self.over_sample_size_pixelization,
pad_for_convolver=False,
pad_for_psf=False,
check_noise_map=False,
)

Expand Down Expand Up @@ -511,7 +495,7 @@ def apply_over_sampling(
over_sample_size_lp=over_sample_size_lp or self.over_sample_size_lp,
over_sample_size_pixelization=over_sample_size_pixelization
or self.over_sample_size_pixelization,
pad_for_convolver=False,
pad_for_psf=False,
check_noise_map=False,
)

Expand Down
2 changes: 1 addition & 1 deletion autoarray/dataset/interferometer/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,5 +276,5 @@ def output_to_fits(
)

@property
def convolver(self):
def psf(self):
return None
14 changes: 7 additions & 7 deletions autoarray/dataset/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,15 +263,15 @@ def edges_from(image, no_edges):
edges = []

for edge_no in range(no_edges):
top_edge = image.native[edge_no, edge_no : image.shape_native[1] - edge_no]
bottom_edge = image.native[
top_edge = image.native.array[edge_no, edge_no : image.shape_native[1] - edge_no]
bottom_edge = image.native.array[
image.shape_native[0] - 1 - edge_no,
edge_no : image.shape_native[1] - edge_no,
]
left_edge = image.native[
left_edge = image.native.array[
edge_no + 1 : image.shape_native[0] - 1 - edge_no, edge_no
]
right_edge = image.native[
right_edge = image.native.array[
edge_no + 1 : image.shape_native[0] - 1 - edge_no,
image.shape_native[1] - 1 - edge_no,
]
Expand Down Expand Up @@ -328,7 +328,7 @@ def background_noise_map_via_edges_from(image, no_edges):
def psf_with_odd_dimensions_from(psf):
"""
If the PSF kernel has one or two even-sized dimensions, return a PSF object where the kernel has odd-sized
dimensions (odd-sized dimensions are required by a *Convolver*).
dimensions (odd-sized dimensions are required for 2D convolution).

Kernels are rescaled using the scikit-image routine rescale, which performs rescaling via an interpolation
routine. This may lead to loss of accuracy in the PSF kernel and it is advised that users, where possible,
Expand Down Expand Up @@ -517,8 +517,8 @@ def noise_map_with_signal_to_noise_limit_from(
noise_map_limit = np.where(
(signal_to_noise_map.native > signal_to_noise_limit)
& (noise_limit_mask == False),
np.abs(data.native) / signal_to_noise_limit,
noise_map.native,
np.abs(data.native.array) / signal_to_noise_limit,
noise_map.native.array,
)

mask = Mask2D.all_false(
Expand Down
11 changes: 0 additions & 11 deletions autoarray/exc.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,6 @@ class PlottingException(Exception):
pass


class PreloadsException(Exception):
"""
Raises exceptions associated with the `preloads.py` module and `Preloads` class.

For example if the preloaded quantities lead to a change in figure of merit of a fit compared to a fit without
preloading.
"""

pass


class ProfilingException(Exception):
"""
Raises exceptions associated with in-built profiling tools (e.g. the `profile_func` decorator).
Expand Down
Loading
Loading