Enable realtime pipeline execution and improve data fetching - #17
Open
pramilajangid wants to merge 1 commit into
Open
Enable realtime pipeline execution and improve data fetching#17pramilajangid wants to merge 1 commit into
pramilajangid 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.
Fixes #16
Summary
Blockers Fixed
docker-compose.ymlpointed at a missing Dockerfile, so I added a working Dockerfile and fixed Compose to build the app again.pandasfailed; I updated Docker to install both root and API requirements.linux/amd64for safer Windows/Mac portability.requirements.txthadxarray==23.7.0, which does not exist; I corrected it to2023.7.0so installs succeed.src/eiaParser.pyassumed happy-path API responses and leaked the key in logs; I moved the key toEIA_API_KEY, validated responses, and masked the key in printed URLs.src/CarbonCastE2E.py.src/; I converted electricity, weather, first-tier, and second-tier paths to resolve from the repo/source location instead.src/weather/getRealTimeWeatherData.pycould save HTML/error pages as.grib2; I added HTTP status checks, empty/HTML rejection, and explicit weather download errors.curlworked butrequestscould hang; I switched the downloader to sessions, streaming, explicit headers, and better timeouts so live weather fetch completes reliably.src/weather/separateWeatherByRegion.pycould fail with rawKeyError; I added clearer region-missing validation.src/CarbonCastE2E.pyforEIA_API_KEY,wgrib2, weather availability, and output directories.firstTierConfig.json; I fixed first-tier config and model path resolution to work from the repo root.fuel_forecast/did not exist; I made first-tier create realtime output directories before writing.PJMreturned prediction arrays in a different shape, causing reshape crashes; I normalized model outputs insrc/firstTierForecasts.pywith safe flattening.secondTierConfig.jsonor saved models reliably; I fixed second-tier config/model path resolution insrc/secondTierForecasts.py.lifecycle/<REGION>anddirect/<REGION>resolve correctly.UTC timealso load correctly.src/secondTierForecasts.pycould break on modern environments; I updated them to currentkeras.layersimports.Validation