Skip to content

Commit

Permalink
Update src/example.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Ayush Patnaik <[email protected]>
  • Loading branch information
iuliadmtru and ayushpatnaikgit authored Aug 8, 2022
1 parent 1069134 commit d7822ae
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/example.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ The API program has been discontinued at the end of 2018. Information is archive
"""
function load_data(name)
name = name * ".csv"
path_len = length(pathof(Survey))
termination_len = length("src/Survey.jl")
assets_path = pathof(Survey)[1:path_len - termination_len] * "assets"
assets_path = joinpath(PKG_DIR, "assets")
@assert name readdir(assets_path)

CSV.read(asset_path(name), DataFrame, missingstring="NA")
Expand Down

0 comments on commit d7822ae

Please sign in to comment.