Skip to content

Commit 8996212

Browse files
Jammy2211Jammy2211
authored andcommitted
stuff urgh
1 parent 5e8d05f commit 8996212

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ jobs:
6666
- name: Run tests
6767
run: |
6868
export ROOT_DIR=`pwd`
69-
export JAX_ENABLE_X64=True
7069
export PYTHONPATH=$PYTHONPATH:$ROOT_DIR/PyAutoConf
7170
export PYTHONPATH=$PYTHONPATH:$ROOT_DIR/PyAutoArray
7271
pushd PyAutoArray

autoarray/inversion/pixelization/mappers/abstract.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,15 @@ def sparse_triplets_curvature(self):
370370
Mapping weight for each entry.
371371
"""
372372

373-
rows, cols, vals = self.sparse_triplets_data
374-
375-
rows = self.mapper_grids.mask.fft_index_for_masked_pixel[rows]
373+
rows, cols, vals = mapper_util.sparse_triplets_from(
374+
pix_indexes_for_sub=self.pix_indexes_for_sub_slim_index,
375+
pix_weights_for_sub=self.pix_weights_for_sub_slim_index,
376+
slim_index_for_sub=self.slim_index_for_sub_slim_index,
377+
fft_index_for_masked_pixel=self.mapper_grids.mask.fft_index_for_masked_pixel,
378+
sub_fraction_slim=self.over_sampler.sub_fraction.array,
379+
xp=self._xp,
380+
return_rows_slim=False
381+
)
376382

377383
return rows, cols, vals
378384

test_autoarray/inversion/inversion/imaging/test_inversion_imaging_util.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,6 @@ def test__data_vector_via_weighted_data_two_methods_agree():
204204

205205
for sub_size in range(1, 3):
206206

207-
print(sub_size)
208-
209207
grid = aa.Grid2D.from_mask(mask=mask, over_sample_size=sub_size)
210208

211209
mapper_grids = pixelization.mapper_grids_from(

0 commit comments

Comments
 (0)