Skip to content

Commit

Permalink
updated list_feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
clerkma committed Nov 8, 2023
1 parent eb674d7 commit ecdfd5b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/lsotfea-mruby/otf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,9 @@ def reduce_to_range(src)
end

def list_feature(feature_index_list)
lines = (feature_index_list.length + 3).div(4)
lines.times do |line|
one_line = feature_index_list[4 * line, 4].map {|i| @feature_list[i][:tag]}
puts(" " + one_line.join(" "))
feature_index_list.each_slice(4) do |x|
line = x.map {|i| @feature_list[i][:tag]}
puts(" " + line.join(" "))
end
lookup_map = {}
puts("\n Feature -> LookupIndex")
Expand Down

0 comments on commit ecdfd5b

Please sign in to comment.