Add PSC power plot and multi-file dotenv support for asset optimization#335
Open
cwasicki wants to merge 3 commits into
Open
Add PSC power plot and multi-file dotenv support for asset optimization#335cwasicki wants to merge 3 commits into
cwasicki wants to merge 3 commits into
Conversation
Stacks each component on the consumption line in the passive sign convention, so the top of the stack lands on the grid line unless the components fail to account for the metered exchange. Unlike plot_power_flow, production is not clipped, so a PV system drawing power stays visible instead of being flattened to zero. Charge and discharge bands are drawn as explicit step polygons because a tonexty fill over masked series bridges the gaps and ignores the step shape. Signed-off-by: cwasicki <126617870+cwasicki@users.noreply.github.com>
Shared API URLs can now live in a separate file from the per-microgrid credentials. Files are loaded in order and override earlier ones as well as the environment, because otherwise a credential loaded for one microgrid survives in a notebook kernel and shadows the next one. Paths are expanded, so a "~/..." path no longer silently loads nothing. Credentials are read from API_AUTH_KEY/API_SIGN_SECRET, falling back to API_KEY/API_SECRET, taking both halves from the same pair so a key is never signed with another file's secret. Signed-off-by: cwasicki <126617870+cwasicki@users.noreply.github.com>
Signed-off-by: cwasicki <126617870+cwasicki@users.noreply.github.com>
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.
This adds a new power plot function with power contributions stacked in passive sign convention.
Also adds support for multiple dotenv files,
dotenv_pathtakes a sequence to allow multiple env files which can override each other. Also multiple credential env names are supported and paths expanded.