-
Notifications
You must be signed in to change notification settings - Fork 13
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
Elaborate on DPS output folder usage #455
Comments
@wildintellect, are you sure the code snippet is correct? I think there are at least 2 problems: (1) I think this is what you want:
I've also surrounded |
(1) works either way, you're right that setting the var 1st is probably best practices So yes @chuckwondo 's example is technically cleaner |
It doesn't work when PWD is not the directory in which the script is sitting. In other words, these 2 lines are not equivalent when PWD is not the directory containing the script containing these lines:
|
In the context of DPS jobs, we should always use There is also a typo in the original code in the first comment of this issue (
|
Turns out passing the
output
directory location to scripts is trickier than outlined inhttps://docs.maap-project.org/en/latest/technical_tutorials/dps_tutorial/dps_tutorial_demo.html#Output-folder
Q: why do users need to make the output folder, if it's always needed as the correct location for outputs, should it exist already? @sujen1412
Specifically, this does not show how to pass the correct path to scripts, e.g. python and R.
Also is the case of R, R is very sensitive to working directories when importing other R files, so the script can't always be run from the default path DPS starts at, which means the output folder is actually up one level from where the script executes.
Here's an R example (We're going to need R examples on par with the python dps_tutorial)
The text was updated successfully, but these errors were encountered: