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

rinclude argument in collect_results finds matches in the absolute path #386

Open
mastrof opened this issue Apr 16, 2023 · 0 comments
Open
Labels
data Related to data management running-listing Functionality for running and listing simulation runs

Comments

@mastrof
Copy link

mastrof commented Apr 16, 2023

I have a DrWatson project named GradientSensing which resides in a directory named PhycosphereRadius (where other projects also live).

Now I have run some analysis and let's say in my datadir I have some files, one named Phycosphere.jld2, the other Otherstuff.jld2 (there will be multiple files with same suffix and different parameters etc).

If I do collect_results(datadir(), rinclude=[r"Phycosphere"]) I would expect that only Phycosphere.jld2 is loaded, instead also Otherstuff.jld2 is loaded, because the rinclude matches the "Phycosphere" keyword somewhere along the absolute path (even if it's outside of the project: ~/PhycosphereRadius/GradientSensing/data/Otherstuff.jld2).

Is this a bug or intended behavior? For the moment I can just rename my file, but in general this behavior means that the results of my code are not independent of the absolute path of the project, which I guess is non-optimal. But maybe I'm just missing something obvious: is there a way to have collect_results ignore anything that happens outside of the project directory?

@Datseris Datseris added running-listing Functionality for running and listing simulation runs data Related to data management labels Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data Related to data management running-listing Functionality for running and listing simulation runs
Projects
None yet
Development

No branches or pull requests

2 participants