Caiso integration#5
Open
elmartinj wants to merge 8 commits into
Open
Conversation
…ss using pre-commits
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.
Caiso integration is identical to current CENACE's development state.
It is important to note that the OASIS API will only provide 39 months of history, prior data is available but would involve redesign of extraction and data flow structure.
General diagram of workflow is as follows:
CAISO OASIS API
↓
src/data/caiso/extract/core.py
Downloads DAM LMP ZIP files in date chunks
Saves raw files under data/caiso/raw/
...
src/data/caiso/transform/core.py
Filters total LMP rows
Converts data to: unique_id | ds | y
Saves data/caiso/processed/caiso.csv
...
src/data/caiso/aggregate/core.py
Creates daily Parquet partitions under:
data/caiso/processed-events/hourly/
...
src/data/caiso/utils/caiso_data.py
Loads training windows and actuals from partitioned data
...
src/forecast/caiso/core.py
Runs the existing Impermanent forecasting flow
...
src/evaluation/caiso/core.py
Evaluates forecasts using the existing Impermanent metrics
src/data/caiso/config.py contains the selected CAISO nodes, market configuration, start date and local storage paths.
For future S3 deployment
The current implementation uses local paths, but the pipeline stages are already separated cleanly enough for S3 deployment:
OASIS
The main change will be replacing direct Path and local filesystem operations with a storage abstraction supporting both local and S3 locations. Extraction, transformation, forecasting and evaluation logic should remain unchanged.