Skip to content

properly handle forecast with empty catalogs #111

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

Merged
merged 3 commits into from
Apr 8, 2021

Conversation

wsavran
Copy link
Collaborator

@wsavran wsavran commented Apr 1, 2021

  • fixes what happens to empty catalogs #107
  • added ability for empty events to be specified explicitly
  • implement storage optimization by allowing for empty catalogs to be omitted so long as final catalog_id = (n_cat - 1)
  • added unit tests for catalog reading
  • todo: update documentation

@codecov-io
Copy link

Codecov Report

Merging #111 (62b182a) into master (fa789f0) will increase coverage by 3.58%.
The diff coverage is 88.09%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #111      +/-   ##
==========================================
+ Coverage   53.25%   56.83%   +3.58%     
==========================================
  Files          19       19              
  Lines        3091     3116      +25     
  Branches      445      451       +6     
==========================================
+ Hits         1646     1771     +125     
+ Misses       1352     1238     -114     
- Partials       93      107      +14     
Impacted Files Coverage Δ
csep/core/catalogs.py 57.57% <88.09%> (+10.70%) ⬆️
csep/__init__.py 32.20% <0.00%> (+8.47%) ⬆️
csep/core/forecasts.py 55.09% <0.00%> (+17.35%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fa789f0...62b182a. Read the comment docs.

wsavran added 3 commits April 6, 2021 13:53
- fixes SCECcode#107
- added ability for empty events to be specified explicitly
- implement storage optimization by allowing for empty catalogs to be omitted so long as final catalog_id = (n_cat - 1)
- added unit tests for catalog reading
- todo: update documentation
@wsavran wsavran force-pushed the bill_fix107_load-catalog branch from c5ca273 to b1f4473 Compare April 6, 2021 20:53
@wsavran wsavran requested a review from pabloitu April 6, 2021 21:32
@wsavran wsavran merged commit 6e07a43 into SCECcode:master Apr 8, 2021
@wsavran wsavran deleted the bill_fix107_load-catalog branch April 8, 2021 18:58
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.

what happens to empty catalogs
2 participants