Skip to content

Update Config to project_dir_path. Update utils for v4_global. Update… - #89

Open
burnettear wants to merge 1 commit into
mainfrom
v4
Open

Update Config to project_dir_path. Update utils for v4_global. Update…#89
burnettear wants to merge 1 commit into
mainfrom
v4

Conversation

@burnettear

Copy link
Copy Markdown
Contributor

There are 3 groups of files being updated:

  1. config.py
  2. utils.py
  3. non-oil/gas emi files

1. config.py
The config file has been updated to include PROJECT_DIR_PATH from the .env. My .env is below:
PROJECT_DIR_PATH = "/Users/aburnette/Library/CloudStorage/OneDrive-SharedLibraries-EnvironmentalProtectionAgency(EPA)/Gridded CH4 Inventory - RTI 2024 Task Order/Task 2"
The updated config.py separates out V3 and V4 paths from the project_dir_path.

2. utils.py
The utils file was updated because emi files were failing, due to pulling tg_to_kt. Because utils.py was being imported from, utils was breaking because it pulls generic "global_data_path". I updated utils to include v4_paths and commented out global_data_dir_path for the moment. The long term fix would be to update functions in utils to use the correct path, or make the path an argument since there are now active V3 and V4 paths.

3. Non-oil/gas emi files
I updated all non-oil/gas emi files to include v4 paths, update to file dimensions for v4 (some InvDB and excel files changed formats), and ensured files write out to v4_emi dir correctly.

@burnettear

Copy link
Copy Markdown
Contributor Author

@nkruskamp reject this pull request. I used vscode git extension and it pushed to v4 instead of creating my v4_update_emis branch. I'm going to reach out on Teams

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.

2 participants