Curated tiff directories in yaml file should be relative to yaml file#634
Open
matham wants to merge 1 commit into
Open
Curated tiff directories in yaml file should be relative to yaml file#634matham wants to merge 1 commit into
matham wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
What is this PR
Why is this PR needed?
Currently, after exporting the curated cuboids, if you move the exported data elsewhere (such as another computer) and then try to use the yaml for training, it'll error out because the paths in the yaml file for the tiff directories are absolute. This is annoying because you have to manually adjust the paths in all the yaml files every time you move them.
Here's a test I added to the branch, which when run on main results in the following error, which similarly happens if you try to use a yaml file after it has been moved from the location where data was originally exported:
What does this PR do?
training.yamlfile. I'm assuming that when people move training data they move it as a whole so the yaml file will always have the same relationship to the directories as when originally exported.test_async_save_done_only_after_cubes_written, because we should be checking for the done message to appear, not for the yaml file to be written because we can't assumetraining.yamlis the last file that gets saved.References
None.
How has this PR been tested?
Added tests.
Is this a breaking change?
No.
Does this PR require an update to the documentation?
No.
Checklist: