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

ModelData Utilities #249

Merged
merged 3 commits into from
Oct 6, 2021
Merged

Conversation

darrylmelander
Copy link
Collaborator

Summary/Motivation:

These utilities are useful for Prescient when working with ModelData objects, and may be useful to others as well.

Changes proposed in this PR:

Added two utilities that help you work with ModelData objects:

  • egret.model_library.transmission.tx_utils.element_types() - Returns an iterable that lists all valid types you can pass to ModelData.elements('type-name')
  • egret.parsers.rts_gmlc.parser.ParsedCache.get_timeseries_locations(ModelData) - Returns an iterable that enumerates all the places in the passed-in ModelData object that holds a time series, as specified in the RTS-GMLC data that was parsed and cached in the ParsedCache object.

Legal Acknowledgement

By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the BSD license.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

Copy link
Collaborator

@bknueven bknueven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, besides correcting a mistake I made ...

egret/model_library/transmission/tx_utils.py Outdated Show resolved Hide resolved
egret/parsers/rts_gmlc/parsed_cache.py Outdated Show resolved Hide resolved
@darrylmelander darrylmelander marked this pull request as draft October 6, 2021 20:09
@darrylmelander darrylmelander marked this pull request as ready for review October 6, 2021 23:14
@bknueven bknueven merged commit 8bcaa86 into grid-parity-exchange:main Oct 6, 2021
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