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

Update to Vector{DateTime} in Results #1250

Merged
merged 4 commits into from
Feb 24, 2025
Merged

Conversation

rodrigomha
Copy link
Contributor

@rodrigomha rodrigomha commented Feb 20, 2025

Companion PR with: NREL-Sienna/InfrastructureSystems.jl#438

The main change is related when having to do read_realized_terms in a Simulation and generating the ranges in DecisionProblems without having available the methods for step.

The main problem happens now when you received a single simulation step or a single time step, and having to create a step in that case.

The approach here is covering all the previous cases to properly have the necessary intervals and resolutions in those cases. It took some time to debug this. Tests are passing locally with the proper IS branch:
image

Also updated the printing as we don't have step now.

@rodrigomha rodrigomha requested a review from jd-lara February 20, 2025 23:27
Copy link

codecov bot commented Feb 20, 2025

Codecov Report

Attention: Patch coverage is 63.15789% with 7 lines in your changes missing coverage. Please review.

Project coverage is 77.28%. Comparing base (6fc3590) to head (a12740a).
Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
...rc/simulation/decision_model_simulation_results.jl 60.00% 4 Missing ⚠️
src/utils/printing.jl 66.66% 3 Missing ⚠️

❌ Your patch status has failed because the patch coverage (63.15%) is below the target coverage (70.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1250      +/-   ##
==========================================
- Coverage   77.60%   77.28%   -0.33%     
==========================================
  Files         124      124              
  Lines       13840    13693     -147     
==========================================
- Hits        10741    10582     -159     
- Misses       3099     3111      +12     
Flag Coverage Δ
unittests 77.28% <63.15%> (-0.33%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/utils/printing.jl 68.06% <66.66%> (ø)
...rc/simulation/decision_model_simulation_results.jl 82.81% <60.00%> (-1.35%) ⬇️

... and 10 files with indirect coverage changes

Copy link
Contributor

github-actions bot commented Feb 21, 2025

Performance Results

Version Precompile Time
Main 5.851496044
This Branch 5.854318204
Version Build Time
Main-Build Time Precompile 65.84150944
Main-Build Time Postcompile 0.839553055
This Branch-Build Time Precompile 65.742220632
This Branch-Build Time Postcompile 0.851064759
Version Build Time
Main-Solve Time Precompile 456.274177553
Main-Solve Time Postcompile 422.285050583
This Branch-Solve Time Precompile 631.740151454
This Branch-Solve Time Postcompile 591.375361015

@jd-lara jd-lara merged commit 620bcfe into main Feb 24, 2025
10 of 11 checks passed
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