Skip to content

Commit de1085b

Browse files
Jammy2211Jammy2211
authored andcommitted
fix positions visualization bu
1 parent ecf1b73 commit de1085b

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

autolens/imaging/model/visualizer.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,20 @@ def visualize_before_fit(
3939

4040
if analysis.positions_likelihood_list is not None:
4141

42-
positions_list = []
42+
if analysis.positions_likelihood_list[0] is not None:
4343

44-
for positions_likelihood in analysis.positions_likelihood_list:
44+
positions_list = []
4545

46-
positions_list.append(
47-
positions_likelihood.positions
48-
)
46+
for positions_likelihood in analysis.positions_likelihood_list:
47+
48+
positions_list.append(
49+
positions_likelihood.positions
50+
)
4951

50-
positions = ag.Grid2DIrregular(positions_list)
52+
positions = ag.Grid2DIrregular(positions_list)
5153

52-
plotter_interface.image_with_positions(
53-
image=analysis.dataset.data,
54+
plotter_interface.image_with_positions(
55+
image=analysis.dataset.data,
5456
positions=positions,
5557
)
5658

0 commit comments

Comments
 (0)