Skip to content

Commit

Permalink
fixed trimmer syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
joott committed Aug 5, 2022
1 parent 1399b10 commit 3265f87
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions data_trimmer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ max_run = 832

Threads.@threads for series in 1:16
for run in 1:max_run
df = readdlm("sum_L_32_id_$(id)_series_$(series)_run_$run.dat", ' ')
df = readdlm("sum_L_32_id_$(id)_series_$(series)_run_$run.dat", ' ')

open("trim/sum_L_32_id_$(id)_series_$(series)_run_$run.dat","w") do io
for row in 1:10:size(df, 1)
Printf.@printf(io, "%i %f %f\n", df[row,1], df[row,2], df[row,3])
end
open("trim/sum_L_32_id_$(id)_series_$(series)_run_$run.dat","w") do io
for row in 1:10:size(df, 1)
Printf.@printf(io, "%i %f %f\n", df[row,1], df[row,2], df[row,3])
end
end
end
end
end

0 comments on commit 3265f87

Please sign in to comment.