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YGT6OLO722AC X54TLSYE7DYWGLQUI7AIZOABUCQ7WTHFC6G62UBA7RJZK4AYOJGAC OFTU77S5FEE5SWAV7G4OWAQ7GY6LOEY65ZTMJCDMPMJGB7TWDIOQC NMQCXLNGPIKUKMNKEIVUBYUNJQDM63IVKRVMQHVV5TLH6OBNF3IAC E3Y55MPRKKDPTGI56RSA7YCGB33NSZYKHGCVHEUKRM2KJ2RNM5IQC QPBH7QWC56HIYUJCCHKDNBN2D346UN3IOXDCIKSAATLIATLSW3YQC df2 = DataFrame(A=[1,2,3], B=[4,5,6])@test Skraak.assert_not_empty(df2, "/abc/def") == DataFrame(A=[1,2,3], B=[4,5,6])
df2 = DataFrames.DataFrame(A = [1, 2, 3], B = [4, 5, 6])@test Skraak.assert_not_empty(df2, "/abc/def") ==DataFrames.DataFrame(A = [1, 2, 3], B = [4, 5, 6])
df1 = DataFrame(A = [1, 2], B = [3, 4])@test Skraak.rename_column!(df1, "C", "D") == DataFrame(A = [1, 2], B = [3, 4])
df1 = DataFrames.DataFrame(A = [1, 2], B = [3, 4])@test Skraak.rename_column!(df1, "C", "D") ==DataFrames.DataFrame(A = [1, 2], B = [3, 4])
df2 = DataFrame(A = [1, 2], B = [1, 2])@test Skraak.rename_column!(df2, "B", "C") == DataFrame(A = [1, 2], C = [1, 2])
df2 = DataFrames.DataFrame(A = [1, 2], B = [1, 2])@test Skraak.rename_column!(df2, "B", "C") ==DataFrames.DataFrame(A = [1, 2], C = [1, 2])
df1 = DataFrame(loc=["Auckland"], kiwi=[1.0])@test Skraak.assert_detections_present(df1, "location", "trip date") == DataFrame(loc=["Auckland"], kiwi=[1.0])
df1 = DataFrames.DataFrame(loc = ["Auckland"], kiwi = [1.0])@test Skraak.assert_detections_present(df1, "location", "trip date") ==DataFrames.DataFrame(loc = ["Auckland"], kiwi = [1.0])
df2 = DataFrame(loc=["Wellington", "Auckland"], kiwi=[0.0, 0.0])@test_throws MethodError Skraak.assert_detections_present(df2, "location", "trip_date")
df2 = DataFrames.DataFrame(loc = ["Wellington", "Auckland"], kiwi = [0.0, 0.0])@test_throws MethodError Skraak.assert_detections_present(df2,"location","trip_date",)
df = DataFrame(file=["./20220101_120000.WV", "./011122_124500.wav"])@test Skraak.insert_datetime_column!(df) == DataFrame(file=["./20220101_120000.WV", "./011122_124500.wav"], DateTime=[DateTime(2022,1,1,12,0,0), DateTime(2022,11,1,12,45,0)])
df =DataFrames.DataFrame(file = ["./20220101_120000.WV", "./011122_124500.wav"])@test Skraak.insert_datetime_column!(df) == DataFrames.DataFrame(file = ["./20220101_120000.WV", "./011122_124500.wav"],DateTime = [DateTime(2022, 1, 1, 12, 0, 0),DateTime(2022, 11, 1, 12, 45, 0),],)
@test dict[Date(2019, 1, 1)] == (DateTime("2019-01-01T06:03:03"), DateTime("2019-01-01T21:43:33"))@test dict[Date(2024, 12, 31)] == (DateTime("2024-12-31T06:02:38"), DateTime("2024-12-31T21:43:30"))
@test dict[Date(2019, 1, 1)] ==(DateTime("2019-01-01T06:03:03"), DateTime("2019-01-01T21:43:33"))@test dict[Date(2024, 12, 31)] ==(DateTime("2024-12-31T06:02:38"), DateTime("2024-12-31T21:43:30"))
df = DataFrame(DateTime = [DateTime("2021-08-01T00:00:00"), DateTime("2021-08-01T06:00:00"), DateTime("2021-08-01T12:00:00"), DateTime("2021-08-01T16:00:00")])
df = DataFrames.DataFrame(DateTime = [DateTime("2021-08-01T00:00:00"),DateTime("2021-08-01T06:00:00"),DateTime("2021-08-01T12:00:00"),DateTime("2021-08-01T16:00:00"),],)
detections=[100.0, 102.5, 105.0, 107.5, 110.0, 112.5, 115.0, 117.5, 120.0, 122.5, 125.0, 127.5, 130.0, 132.5, 135.0, 137.5, 140.0, 685.0, 687.5, 690.0, 692.5, 695.0, 697.5, 700.0, 702.5, 705.0, 707.5, 710.0, 712.5, 717.5, 720.0, 890.0]@test Skraak.cluster_detections(detections) == [[100.0, 102.5, 105.0, 107.5, 110.0, 112.5, 115.0, 117.5, 120.0, 122.5, 125.0, 127.5, 130.0, 132.5, 135.0, 137.5, 140.0], [685.0, 687.5, 690.0, 692.5, 695.0, 697.5, 700.0, 702.5, 705.0, 707.5, 710.0, 712.5, 717.5, 720.0]]
detections = [100.0,102.5,105.0,107.5,110.0,112.5,115.0,117.5,120.0,122.5,125.0,127.5,130.0,132.5,135.0,137.5,140.0,685.0,687.5,690.0,692.5,695.0,697.5,700.0,702.5,705.0,707.5,710.0,712.5,717.5,720.0,890.0,]@test Skraak.cluster_detections(detections) == [[100.0,102.5,105.0,107.5,110.0,112.5,115.0,117.5,120.0,122.5,125.0,127.5,130.0,132.5,135.0,137.5,140.0,],[685.0,687.5,690.0,692.5,695.0,697.5,700.0,702.5,705.0,707.5,710.0,712.5,717.5,720.0,],]
detection=[100.0, 102.5, 105.0, 107.5, 110.0, 112.5, 115.0, 117.5, 120.0, 122.5, 125.0, 127.5, 130.0, 132.5, 135.0, 137.5, 140.0]@test Skraak.calculate_clip_start_end(detection, freq, signal_length) == (1.6e6, 2.32e6)@test Skraak.calculate_clip_start_end(detection[1:2], freq, signal_length) == (1.6e6, 1.72e6)
detection = [100.0,102.5,105.0,107.5,110.0,112.5,115.0,117.5,120.0,122.5,125.0,127.5,130.0,132.5,135.0,137.5,140.0,]@test Skraak.calculate_clip_start_end(detection, freq, signal_length) ==(1.6e6, 2.32e6)@test Skraak.calculate_clip_start_end(detection[1:2], freq, signal_length) ==(1.6e6, 1.72e6)
@test Skraak.calculate_clip_start_end(last, freq, signal_length) == (1.424e7, 1.432e7)@test Skraak.calculate_clip_start_end(last[1:2], freq, signal_length) == (1.424e7, 1.432e7)
@test Skraak.calculate_clip_start_end(last, freq, signal_length) ==(1.424e7, 1.432e7)@test Skraak.calculate_clip_start_end(last[1:2], freq, signal_length) ==(1.424e7, 1.432e7)
export dawn_dusk_of_sunrise_sunset,get_sunrise_sunset_utc,make_spectro_from_file,move_one_hour!,resample_to_16000hz,resample_to_8000hz,resize_image!,utc_to_nzdt!,check_png_wav_both_presentusing CSV,DataFrames,Dates,Glob,HTTP,ImageTransformations,JSON3,TimeZones,WAV,DataFramesMeta#XMLDict, DBInterface, DSP, DuckDB, PNGFiles, Random, SHA
#clipsexport make_clips, make_clips_generic, move_clips_to_folders#filemetadataexport file_metadata_to_df#labelsexport actual_from_folders,aggregate_labels,audiodata_db,avianz_file_of_dict,avianz_of_raven, #not working right, 1 file per label I thinkavianz_of_scores,check_change_avianz_species!,df_of_avianz_dict,dict_of_avianz_file,label_summary,one_hot_labels,prepare_df_for_raven,raven_of_avianz
#utilityexport dawn_dusk_of_sunrise_sunset,get_sunrise_sunset_utc,make_spectro_from_file,move_one_hour!,resample_to_16000hz,resample_to_8000hz,resize_image!,utc_to_nzdt!,check_png_wav_both_presentusing CSV,DataFrames,DataFramesMeta,Dates,DBInterface,DSP,DuckDB,Glob,HTTP,ImageTransformations,JSON3,PerceptualColourMaps,PNGFiles,Random,SHA,TimeZones,WAV,XMLDict
export actual_from_folders,aggregate_labels,audiodata_db,avianz_file_of_dict,avianz_of_raven, #not working right, 1 file per label I thinkavianz_of_scores,check_change_avianz_species!,df_of_avianz_dict,dict_of_avianz_file,label_summary,one_hot_labels,prepare_df_for_raven,raven_of_avianz
export make_clips, make_clips_generic, move_clips_to_foldersusing CSV,DataFrames,DataFramesMeta,Dates,DSP,Glob,ImageTransformations,PerceptualColourMaps,PNGFiles,Random,TimeZones,WAV
x -> Skraak.assert_not_empty(x, preds_path) |>x -> Skraak.rename_column!(x, "1.0", "label") |> #can remove now, for old opensounscape model needs to be label
x -> assert_not_empty(x, preds_path) |>x -> rename_column!(x, "1.0", "label") |> #can remove now, for old opensounscape model needs to be label
x -> Skraak.assert_not_empty(x, preds_path) |>x -> 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
x -> assert_not_empty(x, preds_path) |>x -> rename_column!(x, "1.0", "label") |> #can remove now, for old opensoundscape kiwi model needs to be labelx -> rename_column!(x, "Kiwi", "label") |> #for new kiwi model needs to be label
deps = ["Compat", "FFTW", "IterTools", "LinearAlgebra", "Polynomials", "Random", "Reexport", "SpecialFunctions", "Statistics"]git-tree-sha1 = "0df00546373af8eee1598fb4b2ba480b1ebe895c"
deps = ["Bessels", "FFTW", "IterTools", "LinearAlgebra", "Polynomials", "Random", "Reexport", "SpecialFunctions", "Statistics"]git-tree-sha1 = "489db9d78b53e44fb753d225c58832632d74ab10"
deps = ["Base64", "CodecZlib", "ConcurrentUtilities", "Dates", "ExceptionUnwrapping", "Logging", "LoggingExtras", "MbedTLS", "NetworkOptions", "OpenSSL", "Random", "SimpleBufferStream", "Sockets", "URIs", "UUIDs"]git-tree-sha1 = "1336e07ba2eb75614c99496501a8f4b233e9fafe"
deps = ["Base64", "CodecZlib", "ConcurrentUtilities", "Dates", "ExceptionUnwrapping", "Logging", "LoggingExtras", "MbedTLS", "NetworkOptions", "OpenSSL", "PrecompileTools", "Random", "SimpleBufferStream", "Sockets", "URIs", "UUIDs"]git-tree-sha1 = "c67b33b085f6e2faf8bf79a61962e7339a81129c"
deps = ["Artifacts", "CompilerSupportLibraries_jll", "JLLWrappers", "Libdl", "Pkg"]git-tree-sha1 = "13652491f6856acfd2db29360e1bbcd4565d04f1"
deps = ["Artifacts", "CompilerSupportLibraries_jll", "JLLWrappers", "Libdl"]git-tree-sha1 = "1346c9208249809840c91b26703912dff463d335"
deps = ["LinearAlgebra", "RecipesBase", "Requires", "Setfield", "SparseArrays"]git-tree-sha1 = "1a9cfb2dc2c2f1bd63f1906d72af39a79b49b736"
deps = ["LinearAlgebra", "OrderedCollections", "RecipesBase", "Requires", "Setfield", "SparseArrays"]git-tree-sha1 = "56ff43adee1b1449fa151265b0088fe1c14dfd7d"
deps = ["DataAPI", "DataStructures", "LinearAlgebra", "LogExpFunctions", "Missings", "Printf", "Random", "SortingAlgorithms", "SparseArrays", "Statistics", "StatsAPI"]git-tree-sha1 = "5cf7606d6cef84b543b483848d4ae08ad9832b21"
deps = ["AliasTables", "DataAPI", "DataStructures", "LinearAlgebra", "LogExpFunctions", "Missings", "Printf", "Random", "SortingAlgorithms", "SparseArrays", "Statistics", "StatsAPI"]git-tree-sha1 = "29321314c920c26684834965ec2ce0dacc9cf8e5"
deps = ["Dates", "Downloads", "InlineStrings", "Mocking", "Printf", "Scratch", "TZJData", "Unicode", "p7zip_jll"]git-tree-sha1 = "33c771f2157712ff4c85931186a4984efbe58934"
deps = ["Artifacts", "Dates", "Downloads", "InlineStrings", "Mocking", "Printf", "Scratch", "TZJData", "Unicode", "p7zip_jll"]git-tree-sha1 = "fcbcffdc11524d08523e92ae52214b29d90b50bb"
deps = ["Artifacts", "JLLWrappers", "JpegTurbo_jll", "Libdl", "Pkg", "libpng_jll"]git-tree-sha1 = "7dfa0fd9c783d3d0cc43ea1af53d69ba45c447df"
deps = ["Artifacts", "JLLWrappers", "JpegTurbo_jll", "Libdl", "libpng_jll"]git-tree-sha1 = "c1733e347283df07689d71d61e14be986e49e47a"