-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
Add data maturity for 923m #2936
Merged
Merged
Changes from 5 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
6cd7712
First pass of integrating the monthly EIA923 data into the rest of th…
aesharpe 681b72d
remove breakpoint
aesharpe 5899fc0
Merge branch 'dev' into add-data-maturity-for-923m
aesharpe 2bff97d
Add function to drop ytd records for annual tables
aesharpe 796b5da
Adjust monthly row expectations for gf and frc tables after dropping …
aesharpe 77e052e
Tweak the way we add data maturity to the eia923 monthly files and re…
aesharpe 44b4d44
Merge branch 'dev' into add-data-maturity-for-923m
aesharpe 63dee8e
Merge with dev
aesharpe b50ea1d
Litle updates:
aesharpe 572147c
For now, comment out the checks that make sure we have the same years…
aesharpe aa42b28
Update min max rows
aesharpe a588420
Add data_maturity field to harvested EIA tables so that we can drop y…
aesharpe 1d267ab
Address PR comments:
aesharpe 8ccc44c
Merge branch 'dev' into add-data-maturity-for-923m
aesharpe b3c11c2
Fix release note trailing whitespace error
aesharpe 3b35892
Update test_eia923_dependency function to make sure some 860 and 923 …
aesharpe 24f6b8d
Update 923 settings files to accomodate 2023 data and update settings…
aesharpe b376141
Update date validation function to only look at instances where data_…
aesharpe 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 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
This file contains 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
This file contains 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
This file contains 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.
if the filename for the YTD file always contains
EIA923_Schedules_2_3_4_5_M_
you could do something like:i think you could probably even use the
if ytd_file_name_start in file_name:
as theelif
instead of checking for 923 first.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.
This makes sense, but also it won't fail if there is no capture group found. I feel like it would be good if this failed if, for example, the file naming changed and we needed to come up with a new way to grab it.
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.
Also, I don't think you can use a variable in
re.search
if you also have the {2} in brackets because it will think it's also an f-string variable.I.e.,
release_month = re.search(r"ytd_file_name_start(\d{2})", file_name).group(1)
won't work.