File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
autoarray/inversion/pixelization/mappers
test_autoarray/inversion/inversion/imaging Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments