Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update POI Proc Spin, ALL #48

Merged
merged 2 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions TPTBox/core/poi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1295,8 +1295,8 @@ def _buffer_it(func):

@functools.wraps(func)
def wrap(*args, **kwargs):
buffer_file = kwargs.get("buffer_file", None)
extend_to = kwargs.get("extend_to", None)
buffer_file = kwargs.get("buffer_file")
extend_to = kwargs.get("extend_to")
save_buffer_file = kwargs.get("save_buffer_file", False)
len_pref = 0
if buffer_file is not None and Path(buffer_file).exists():
Expand Down
6 changes: 4 additions & 2 deletions TPTBox/core/poi_fun/strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,10 @@ def is_inside(f1=0.0, f2=0.0):

# Adjust factors until inside region
while not is_inside():
factor1 = factor2 = factor2 * 0.98
v1_n = v2_n = 1.0
factor1 = factor1 * 0.9
factor2 = factor2 * 0.7
v1_n = 1.0
v2_n = 0.4
f1 = f2 = 0

# Refine factors using delta
Expand Down
2 changes: 1 addition & 1 deletion TPTBox/core/poi_fun/vertebra_pois_non_centroids.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def __init__(self, target: Location, *prerequisite: Location, **args) -> None:
Strategy_Pattern_Side_Effect(L.Vertebra_Direction_Inferior,L.Vertebra_Corpus)
S = strategy_extreme_points

Strategy_Pattern(L.Muscle_Inserts_Spinosus_Process, strategy=S, subreg_id=L.Spinosus_Process, direction=(("P",.2),"I")) # 81
Strategy_Pattern(L.Muscle_Inserts_Spinosus_Process, strategy=S, subreg_id=L.Spinosus_Process, direction=("P",("I",.2))) # 81
Strategy_Pattern(L.Muscle_Inserts_Transverse_Process_Right, strategy=S, subreg_id=L.Costal_Process_Right, direction=("P","R")) # 82
Strategy_Pattern(L.Muscle_Inserts_Transverse_Process_Left, strategy=S, subreg_id=L.Costal_Process_Left, direction=("P","L")) # 83
Strategy_Pattern(L.Muscle_Inserts_Articulate_Process_Inferior_Left, strategy=S, subreg_id=L.Inferior_Articular_Left, direction=("I")) # 86
Expand Down
Loading