Conversation
696ec1b to
5fa893f
Compare
JoeZiminski
commented
Feb 13, 2025
JoeZiminski
commented
Feb 13, 2025
|
The documentation says I found the Once imported, it works 🙂 |
viktorpm
reviewed
Feb 13, 2025
|
I'm not sure if I should get an error when there is a folder in rawdata that does not follow the NBP naming convention. These don't raise errors: |
|
Suggestions based on our discussion:
|
77218af to
6bef78a
Compare
|
I think, it is working as expected:
|
Member
Author
|
Hey @viktorpm thanks a lot for your review and feedback!
will run the same validation but also output a log file. I am not certain if it tells you where the log file is, it should if it does not. Maybe we can revisit this when #464 is merged.
Perfect yes this should be complete is #464
Good point! |
75ad4c6 to
17c1c49
Compare
viktorpm
approved these changes
Feb 24, 2025
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.
[NOTE: this makes a major refactor to the module names. This will completely mess up all other PRs. All other PRs need to be merged before this one, and ensure all changes to
datashuttle.pyare merged intodatashuttle_class.py.]Description
Expose a new function
quick_validate_projectthat can validate a project given a pass, bypassing the full project management.Requires only passing a path to the function.
It would be great to also get feedback on the naming. 'Quick' validate is in contrast to using datashuttle fully to manage a project (e.g. setting up configs). But if you don't know how datashuttle works, this reference is lost. However, it is still 'quick' so maybe it is clear enough 😅
There are a few things which need improving and will come in a follow up PR:
For Reviewing
This PR needed to to some refactoring and renaming which polluted the diff. I added two comments to indicate where the major changes are (new function + tests, there is also a doc).
To build the docs, cd to
docsand do:sphinx-build source buildand the website can be accessed from thebuild/index.htmlfileThe new docs are under 'How to -> Validate Existing Project'. In general the docs lay out is quite confusing and will be improved in an upcoming PR.
To test the function:
What is this PR
Why is this PR needed?
Setting up datashuttle for transfer or in 'local-only' mode (validation + creating folders) is a little cumbersome / confusing. It is nice to expose a fast way to validate folders (which will probably be the main use of the package).
How has this PR been tested?
Integration tests added.