[BUG]: relative path in with block in YAML is interpreted relative from YAML, but copy operation to junifer jobs directory interprets relative to working directory. #224
No reviewers
Labels
No labels
CRITICAL
Stale
WIP
bug
concept
coordinate
dataset
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
maintenance
maps
marker
mask
on hold
parcellation
preprocess
question
ready
storage
template-space
triage
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
juaml/junifer!224
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/with-section-file-copying"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is there an existing issue for this?
Current Behavior
I have the following directory structure:
The top level directory here is my working directory. The code in 01_queue.sh is:
I run
01_queue.sh hcp_yawhich performsjunifer queuewith thehcp_ya.yamlThe content of that yaml file is:
Of course, looking at the with block in the yaml, the file paths are relative from the YAML file:
However when I run this I get:
Thinking, that maybe files have to be relative from working directory, I then tried to change this to:
But using that I get:
Expected Behavior
I think it should just work with relative paths, relative from the YAML directory, even if the working directory is another.
Just to be clear I fixed the issue by adjusting the code in
01_queue.shto this:With that it works, but I think that is somewhat beside the point. In my understanding the previous version should also work.
Also, of course, this puts the junifer jobs directory under the yamls directory which is not what i want. I could also put absolute paths (and will for now), but I would prefer relative paths.
Steps To Reproduce
I think I gave everything needed above. Junifer wtf is below.
Environment
TODO: Fix the
withvalue of theconfigdict with the absolute path here:github.com/juaml/junifer@f203cd853e/junifer/api/parser.py (L67)@LeSasse Could you check if this branch works with your project setup as you described?
Codecov Report
Additional details and impacted files
100.00% <ø> (ø)89.81% <100.00%> (+<0.01%)Flags with carried forward coverage won't be shown. Click here to find out more.
95.34% <100.00%> (+0.47%)I can likely do it on friday or early next week.
Sure, take your time.
@synchon this works in my project folder now.
Thanks for verifying :)