Skip to content

Commit

Permalink
warn
Browse files Browse the repository at this point in the history
  • Loading branch information
montyvesselinov committed Mar 28, 2024
1 parent 7b64d4b commit f542a35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/MadsIO.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ function get_datasets(filename::AbstractString)
ds = JLD2.load(filename)
end
datasets = collect(keys(ds))
println("Available datasets: $(datasets)")
@info("File $(filename) datasets: $(datasets)")
elseif e == ".xlsx"
xb = XLSX.readxlsx(filename)
datasets = collect(XLSX.sheetnames(xb))
println("Available XLSX sheets: $(datasets)")
@info("File $(filename) sheets: $(datasets)")
end
return datasets
end
Expand All @@ -85,7 +85,7 @@ function load_data(filename::AbstractString; dataset="", first_row::Union{Nothin
try
xb = XLSX.readxlsx(filename)
datasets = collect(XLSX.sheetnames(xb))
println("Available XLSX sheets: $(datasets)")
@info("File $(filename) sheets: $(datasets)")
if dataset in datasets
@info("Dataset $(dataset) loaded from $(filename) ...")
c = DataFrames.DataFrame(XLSX.readtable(filename, dataset; stop_in_empty_row=false, header=true, first_row=first_row))
Expand All @@ -105,7 +105,7 @@ function load_data(filename::AbstractString; dataset="", first_row::Union{Nothin
ds = JLD2.load(filename)
end
datasets = collect(keys(ds))
println("Available datasets: $(datasets)")
@info("File $(filename) datasets: $(datasets)")
if dataset in datasets
@info("Dataset $(dataset) loaded from $(filename) ...")
c = ds[dataset]
Expand Down

0 comments on commit f542a35

Please sign in to comment.