Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@load_adult changes current directory #72

Closed
gpucce opened this issue Jul 26, 2021 · 1 comment · Fixed by #73
Closed

@load_adult changes current directory #72

gpucce opened this issue Jul 26, 2021 · 1 comment · Fixed by #73

Comments

@gpucce
Copy link
Contributor

gpucce commented Jul 26, 2021

Hi I don't know if this is a known issue, but using @load_adult appears to be changing the working directory.

julia> using Fairness

julia> pwd()
"/home/orefici/Repos/CItA_experiments/CItA_XAI"

julia> X, y = @load_adult;

julia> pwd()
"/home/orefici/.julia/packages/Fairness/1mEPa/data"

If the issue is real I'd be happy to try and help with a PR if you can point me to where I should look to fix it.

@ashryaagr
Copy link
Owner

Thanks a lot for pointing this out!
I checked, and yes, the issue is real.

You can look at the definition for @load_adult macro here . The issue is probably because directory is changed in the ensure_download function here

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants