Skip to content

Commit

Permalink
fixed 0 0 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Sandberg committed Jan 7, 2025
1 parent a534ebb commit c95c7e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions TCL/polarDensity_for_DTA.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -337,12 +337,11 @@ proc frame_leaflet_assignment {species headname tailname lipidbeads_selstr frame
} else {
error "restrict_leaflet_sorter_to_Rmax must be 1 or 0"
}

set sel_num [llength [lsort -unique [$sel get resid] ] ]
set sel_resid_list [lsort -unique [$sel get resid] ]
set totals {}
if {$sel_num < 1} {
set totals [[list 0 0] [list 0 0]]
set totals [list "lower 0 0" "upper 0 0"]
} else {
#assign leaflets from $frame_i to user2 field of each bead for this species
foreach sel_resid $sel_resid_list {
Expand Down

0 comments on commit c95c7e4

Please sign in to comment.