Skip to content

Commit 21a7b87

Browse files
committed
solution output analysis now takes into account foci list
1 parent fd5a0ab commit 21a7b87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/openlifu/plan/solution.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ def analyze(self, transducer: Transducer, options: SolutionOptions = SolutionOpt
199199
# distance=options.beamwidth_radius,
200200
# options=mask_options)
201201

202-
pk = np.max(pnp_MPa.data * mainlobe_mask) #TODO: pnp_MPa supposed to be a list for each focus: pnp_MPa(focus_index)
203-
solution_analysis.mainlobe_pnp_MPa = pk
202+
pk = np.max(pnp_MPa.data[focus_index] * mainlobe_mask) #TODO: pnp_MPa supposed to be a list for each focus: pnp_MPa(focus_index)
203+
solution_analysis.mainlobe_pnp_MPa += [pk]
204204

205205
# thresh_m3dB = pk*10**(-3 / 20)
206206
# thresh_m6dB = pk*10**(-6 / 20)

0 commit comments

Comments
 (0)