Skip to content

Commit

Permalink
make sure geometric diluation factor is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
DeerWhale committed Feb 7, 2024
1 parent b1ced20 commit 372e618
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tardis/model/parse_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,10 @@ def calculate_geometric_dilution_factor(geometry):
1
- np.sqrt(
1
- (geometry.r_inner_active[0] ** 2 / geometry.r_middle_active**2)
- (
geometry.r_inner[geometry.v_inner_boundary_index] ** 2
/ geometry.r_middle_active**2
)
.to(1)
.value
)
Expand Down

0 comments on commit 372e618

Please sign in to comment.