-
Notifications
You must be signed in to change notification settings - Fork 0
Make task dependencies explicit #47
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
Open
felixschmitz
wants to merge
24
commits into
main
Choose a base branch
from
make-task-dependencies-explicit
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
badeaaf
Refactor config, raw data task and metadata tasks to have explicit de…
felixschmitz 26cff1b
Refactor dataset merging dependencies.
felixschmitz 741ae92
Fix error handling in dataset merging.
felixschmitz 851dd66
Move to .
felixschmitz 166d02f
Rename mapping-dictionaries in metadata and dataset creation.
felixschmitz 15cf8ec
Addendum to renaming.
felixschmitz 5583763
Fix tests.
felixschmitz dfbbc54
Merge branch 'main' into make-task-dependencies-explicit
felixschmitz 7064d98
Move error handling of empty inputs into utilities directory.
felixschmitz bcd246c
Move get_variable_names_in_module function.
felixschmitz 1409733
Add available survey years to variable metadata.
felixschmitz fbc3372
Re-Add pytask-parallel.
felixschmitz 43d8b09
Fix cleaning variables.
felixschmitz 89ad982
Store merging information in yaml.
felixschmitz 6afdec7
Rename variables and helper functions of metadata tasks.
felixschmitz d9d9157
Create helper function to move yml from bld to src.
felixschmitz 3a615e2
Introduce module as umbrella-term for DataFrames (containing multiple…
felixschmitz fb81460
Provisional fix of dataset merging based on metadata mapping in yaml.
felixschmitz 95364ba
Generalize error handling of missing function for script.
felixschmitz 87194c7
Refactor combining variables from multiple modules to take place on m…
felixschmitz d30e6ac
Keep directory structure around.
hmgaudecker 8858c44
Introduce module structure inside config to loop over tasks in a stat…
felixschmitz fd74f19
Merge branch 'make-task-dependencies-explicit' of github.com:OpenSour…
hmgaudecker cab979e
Get rid of pixi deprecation warning.
hmgaudecker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -35,13 +35,13 @@ def _iteratively_read_one_data_file( | |||||
| return pd.concat(processed_chunks) | ||||||
|
|
||||||
|
|
||||||
| data_file_names = get_data_file_names( | ||||||
| DATA_FILE_NAMES = get_data_file_names( | ||||||
| directory=SRC / "clean_variables", | ||||||
| data_root=DATA_ROOT, | ||||||
| soep_version=SOEP_VERSION, | ||||||
| ) | ||||||
|
|
||||||
| for data_file_name in data_file_names: | ||||||
| for data_file_name in DATA_FILE_NAMES: | ||||||
|
|
||||||
| @task(id=data_file_name) | ||||||
| def task_read_one_data_file( | ||||||
|
|
@@ -78,7 +78,7 @@ def task_read_one_data_file( | |||||
| ) | ||||||
|
|
||||||
|
|
||||||
| if not data_file_names: | ||||||
| if not DATA_FILE_NAMES: | ||||||
|
|
||||||
| @task | ||||||
| def _raise_no_data_files_found() -> None: | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add a link to the (correct section of the) README on Github in the message? |
||||||
|
|
||||||
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right?