Skip to content
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

Restructure + optimize codebase #58

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

kaitj
Copy link
Owner

@kaitj kaitj commented Jan 30, 2025

This PR is a restructuring of the codebase to simplify and reduce redundancy of sub-modules (e.g. 2 utils
in different submodules). As part of the the restructuring, optimization of the codebase is also performed to make it more easily maintainable. Changes include:

  • Initialized nhp_dwiproc package with name and location of installation.
    • Updated associated utils calls requiring APP_NAME as needed
    • Optimized application-associated utils
  • Remove unneeded type.py; used to define StrPath which was never used throughout the codebase
  • Moved library utilities (lib.utils) to nhp_dwiproc.utils.assets to reflect utilities for interacting with dagster assets
  • Moved io utilities (utils.io) to nhp_dwiproc.utils.io
  • Initialized sub-modules as needed

Still to be tested prior for PR being ready for merge.

- Part of bigger restructuring for dagster
- Initialize application with name and location of installation. Updated
  nhp_dwiproc.app.utils.app + other sub-modules requiring APP_NAME as needed for these changes.
- Optimize nhp_dwiproc.app.utils.app in the process
- Remove unneeded type.py file
- Moved library utilities to parent folder and renamed to assets to
  reflect the module they will interact with
- Moved app utilities to parent folder and fixed imports
- Moved io utilities to parent order, fixed imports, and initialized sub
  module as needed
@kaitj kaitj self-assigned this Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant