small change to clips

quietlight
Jan 13, 2025, 7:45 PM
ZI5JRTFFCWTGLZA2U5YNBVOKLRG6ONASO57GDRVVKXSWGO3TU4JAC

Dependencies

  • [2] UTM4NN57 changes that were left on linux
  • [3] DKJKJ3LK corrected clips to resample to 8000Hz
  • [4] 7KO4BAOG Tidy up
  • [5] QA2TJZRA ripped ML out into the SkraakML repo, compiles quicker now
  • [6] X54TLSYE catch up commit, train now working with julia 1.10.5 but not 1.11
  • [7] ROFI4OLA catch up, working on colour images
  • [*] 2UBDFCJH new files tracked

Change contents

  • edit in src/Clips.jl at line 88
    [4.4488]
    [3.10]
    if size(signal, 2) == 2
    signal = (signal[:, 1] + signal[:, 2]) / 2
    end
  • replacement in src/Clips.jl at line 379
    [4.2501][2.1791:1842]()
    make_clips_generic(file, 1, Flora1_K1-2-ST, false)
    [4.2501]
    [4.2526]
    make_clips_generic(file, 1, "Kahurangi3_03threshold", true)
  • replacement in src/Clips.jl at line 393
    [4.2661][4.2661:2739]()
    pth = split(preds_path, "/") |> x -> joinpath(x[1:end-1]) |> x -> x * "/"
    [4.2661]
    [4.2739]
    pth0 = split(preds_path, "/")
    length(pth0) > 1 ? (pth = joinpath(pth0[1:end-1]) * "/") : pth = ""
  • replacement in src/Clips.jl at line 416
    [4.3572][2.2217:2391](),[2.2391][4.3620:3621](),[4.3620][4.3620:3621]()
    start_times =
    v[!, :start_time] |> x ->
    dropmissing(x, disallowmissing = true) |> ######CHECK used to make cobb work
    sort
    [4.3572]
    [4.3621]
    #@info (file_name, extension)
    start_times = v.start_time |> x ->
    convert(Vector{Float64}, x) |>
    #dropmissing(x, disallowmissing = true) |> ######CHECK used to make cobb work. not working anymore, but convert works fine. This happens because the col type of dataframe is Float64? even though no missings, seems to ony happen with doc recorders
    sort
  • replacement in src/Clips.jl at line 425
    [4.6198][4.3793:3817](),[4.3793][4.3793:3817]()
    if freq > 16000
    [4.6198]
    [4.3817]
    if size(signal, 2) == 2
    signal = (signal[:, 1] + signal[:, 2]) / 2
    end
    if freq > 8000
  • replacement in src/Clips.jl at line 442
    [2.2768][2.2768:2807]()
    f = "Clips_$id_$(today())"
    [2.2768]
    [4.4523]
    f = "Clips_$(id)_$(today())"