-
Notifications
You must be signed in to change notification settings - Fork 16
Unit Testing for gtep_data.py #53
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
Open
belle-storm
wants to merge
31
commits into
IDAES:main
Choose a base branch
from
belle-storm:unit_test_data-(#48)
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 29 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
b13f884
Initialize PR
belle-storm 7230c3b
create test file
belle-storm 37d36d6
create test file for gtep_data
belle-storm b7eadbd
Merge branch 'IDAES:main' into unit_test_data-(#48)
belle-storm b7fa41d
Add initialization test
belle-storm 3caa4c1
Add load_prescient unit tests
belle-storm 8426aef
Add import_load_scaling tests
belle-storm 96655e5
add import_outage_data tests
belle-storm 7283093
add default data settings test
belle-storm a590f83
add load_storage_csv unit tests
belle-storm 159ecbf
work on texas_case_study tests
belle-storm a40c9f2
replace actual load scaling file with fixture
belle-storm 73dbc6b
fix texas unit test
belle-storm ddfeba7
add iloc to avoid deprecation warning
belle-storm ff52d49
Merge branch 'IDAES:main' into unit_test_data-(#48)
belle-storm 4fc175c
Merge branch 'IDAES:main' into data_unit_tests
belle-storm 8b6700f
Merge branch 'unit_test_data-(#48)' into data_unit_tests
belle-storm 4c4e6a4
Merge pull request #2 from belle-storm/data_unit_tests
belle-storm 5e727f4
enforce pathlib typing
belle-storm 59dbc22
Merge branch 'main' into unit_test_data-(#48)
blnicho 5b31e34
switch to unittest asserts and simplify mock
belle-storm eb334e7
add check for empty dataframe
belle-storm c9cd080
add directory call for outage data
belle-storm c7645ac
add resil week to texas check and base directory to csv path
belle-storm b82794c
convert to unittest assert and use real data files
belle-storm 60b9c44
add testing guards
belle-storm 8ed540c
Add missing dependency
blnicho 11e9f8a
fix attribute failure for outage
belle-storm fd77c9f
remove print statement
belle-storm 330d5a0
update based on PR notes
belle-storm a555dc8
Merge branch 'IDAES:main' into unit_test_data-(#48)
belle-storm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did the order of
keyanddatechange here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In our conversation on Monday, we talked about whether the key should be the index or the date itself.
The previous version of representative_weights that was hard coded in (prior to #61) , used the index as the key to call.
I'm not sure why it was swapped throughout the iterations, but it seems like it should be swapped back.