changes that were left on linux
Dependencies
- [2]
DJBAVTVOtidied up make_clips_generic - [3]
2UBDFCJHnew files tracked - [4]
ROFI4OLAcatch up, working on colour images - [5]
AQWXGGE3mod to clips.jl - [6]
X54TLSYEcatch up commit, train now working with julia 1.10.5 but not 1.11 - [7]
7KO4BAOGTidy up - [8]
QA2TJZRAripped ML out into the SkraakML repo, compiles quicker now - [9]
MMG2PLXKnew functiion to make clips of downloaded bisd calls
Change contents
- replacement in src/Clips.jl at line 69
x -> Skraak.rename_column!(x, "1.0", "label") |> #can remove now, needs to be labelx -> Skraak.rename_column!(x, "1.0", "label") |> #can remove now, for old opensounscape model needs to be labelx -> rename_column!(x, "Kiwi", "label") |> #for new model Kiwi needs to read as label - replacement in src/Clips.jl at line 331
a=Glob.glob("*/*/preds-2024-08-29.csv")b=Glob.glob("*/*/*/preds-2024-08-29.csv")c=Glob.glob("*/*/*/*/preds-2024-08-29.csv")predictions = glob("*/*/preds-2024-10-21.csv")For Kahurangi (1) Dataa=glob("Manu*/['m','X']*/*/preds_Kahurangi_1-2_ST_2024-10-29.csv")b=glob("Manu*/['m','X']*/*/*/preds_Kahurangi_1-2_ST_2024-10-29.csv")c=glob("Manu*/['m','X']*/*/*/*/preds_Kahurangi_1-2_ST_2024-10-29.csv")predictions = [a ; b ; c]a=glob("Manu*/['m','X']*/*/preds4_Kahurangi_1-2_2024-10-29.csv")b=glob("Manu*/['m','X']*/*/*/preds4_Kahurangi_1-2_2024-10-29.csv")c=glob("Manu*/['m','X']*/*/*/*/preds4_Kahurangi_1-2_2024-10-29.csv")predictions = [a ; b ; c]a=glob("Manu*/['m','X']*/*/preds3_Kahurangi_1-2_2024-10-29.csv")b=glob("Manu*/['m','X']*/*/*/preds3_Kahurangi_1-2_2024-10-29.csv")c=glob("Manu*/['m','X']*/*/*/*/preds3_Kahurangi_1-2_2024-10-29.csv") - replacement in src/Clips.jl at line 348
## orpredictions = Glob.glob("*/*/preds-2024-10-21.csv")For Kahurangi (2) Datapredictions=glob("Manu*/m*/preds_Kahurangi_1-2_ST_2024-10-29.csv")predictions=glob("Manu*/m*/preds4_Kahurangi_1-2_2024-10-29.csv")predictions=glob("Manu*/m*/preds3_Kahurangi_1-2_2024-10-29.csv")For Cobbpredictions=glob("Friends*/preds_Kahurangi_1-2_ST_2024-10-29.csv")predictions=glob("Friends*/preds4_Kahurangi_1-2_2024-10-29.csv")predictions=glob("Friends*/preds3_Kahurangi_1-2_2024-10-29.csv")Floraa=glob("*/*/preds_Kahurangi_1-2_ST_2024-10-31.csv")b=glob("*/*/*/preds_Kahurangi_1-2_ST_2024-10-31.csv")c=glob("*/*/*/*/preds_Kahurangi_1-2_ST_2024-10-31.csv")predictions=[a;b;c]# to delete empty preds.csv files, should be ok now with improved python scriptfor file in listsize = stat(file).sizeif size < 10println("Deleting $file - $size")rm(file)endend - replacement in src/Clips.jl at line 376
make_clips_generic(file)make_clips_generic(file, 1, Flora1_K1-2-ST, false) - replacement in src/Clips.jl at line 382
function make_clips_generic(preds_path::String, label::Int = 1)function make_clips_generic(preds_path::String,label::Int ##= 1, needs looking at here TODOid::String,unique_file_names = true,) - replacement in src/Clips.jl at line 402
x -> Skraak.rename_column!(x, "1.0", "label") |> #can remove now, needs to be labelx -> Skraak.rename_column!(x, "1.0", "label") |> #can remove now, for old opensoundscape kiwi model needs to be labelx -> Skraak.rename_column!(x, "Kiwi", "label") |> #for new kiwi model needs to be label - replacement in src/Clips.jl at line 412
start_times = v[!, :start_time] |> sortstart_times =v[!, :start_time] |> x ->dropmissing(x, disallowmissing = true) |> ######CHECK used to make cobb worksort - replacement in src/Clips.jl at line 429[3.4088]→[2.10:304](∅→∅),[2.304]→[3.4385:4488](∅→∅),[3.4385]→[3.4385:4488](∅→∅),[3.4488]→[3.4488:4523](∅→∅)
##p = replace(pth, "/" => "--") #replace / with -- including trailing /##name = "$p$file_name-$(Int(floor(st/freq)))-$(Int(ceil(en/freq)))"name = "$file_name-$(Int(floor(st/freq)))-$(Int(ceil(en/freq)))" #leave off path, not necesaray if unique file names##name = "$location-$h-$trip_date-$file_name-$(Int(floor(st/freq)))-$(Int(ceil(en/freq)))"f = "Clips_$(today())"if unique_file_names == truename = "$file_name-$(Int(floor(st/freq)))-$(Int(ceil(en/freq)))" #leave off path, not necesaray if unique file nameselsep = replace(pth, "/" => "--") #replace / with -- including trailing /name = "$p$file_name-$(Int(floor(st/freq)))-$(Int(ceil(en/freq)))"endf = "Clips_$id_$(today())"