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

Jd/change axes checks #1211

Merged
merged 5 commits into from
Jan 8, 2025
Merged

Jd/change axes checks #1211

merged 5 commits into from
Jan 8, 2025

Conversation

jd-lara
Copy link
Member

@jd-lara jd-lara commented Jan 6, 2025

No description provided.

@jd-lara jd-lara requested a review from daniel-thom January 6, 2025 20:42
@jd-lara jd-lara self-assigned this Jan 6, 2025
Copy link
Contributor

github-actions bot commented Jan 6, 2025

Performance Results

Version Precompile Time
Main 3.979803589
This Branch 4.301376487
Version Build Time
Main-Build Time Precompile 64.254061949
Main-Build Time Postcompile 0.968840545
This Branch-Build Time Precompile 72.095729335
This Branch-Build Time Postcompile 1.220259437
Version Build Time
Main-Solve Time Precompile 621.157800634
Main-Solve Time Postcompile 589.721147207
This Branch-Solve Time Precompile 412.10493183
This Branch-Solve Time Postcompile 371.254460069

Copy link

codecov bot commented Jan 6, 2025

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 76.96%. Comparing base (5772e25) to head (256029e).
Report is 33 commits behind head on main.

Files with missing lines Patch % Lines
src/simulation/simulation_state.jl 0.00% 4 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1211      +/-   ##
==========================================
- Coverage   77.24%   76.96%   -0.29%     
==========================================
  Files         121      121              
  Lines       13446    13536      +90     
==========================================
+ Hits        10387    10418      +31     
- Misses       3059     3118      +59     
Flag Coverage Δ
unittests 76.96% <0.00%> (-0.29%) ⬇️

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

Files with missing lines Coverage Δ
src/simulation/simulation_state.jl 77.41% <0.00%> (-1.09%) ⬇️

... and 8 files with indirect coverage changes

@@ -158,7 +158,12 @@ function _initialize_system_states!(
dm_cols = get_column_names(key, get_dataset(decision_states, key))
if has_dataset(emulator_states, key)
em_cols = get_column_names(key, get_dataset(emulator_states, key))
@assert_op dm_cols == em_cols
@assert_op length(dm_cols) == length(em_cols)
Copy link
Contributor

Choose a reason for hiding this comment

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

Quick check: asserts are for guarding against programmer errors and can be optimized out in production. Errors are for all bad inputs and are always enabled. Should these two checks be of the same type or are they correct as they are?

Copy link
Member Author

Choose a reason for hiding this comment

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

It was originally an assertion but in recent simulation cases there are situations where the data coming might* not have the same devices so I switched to an error. Before I never accounted for the possibility for this to be the result of input errors.

Copy link
Contributor

Choose a reason for hiding this comment

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

So then should line 161 be a call to error()?

Copy link
Member Author

Choose a reason for hiding this comment

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

I should remove that, I put it while I was debugging.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed via 256029e

@jd-lara jd-lara requested a review from daniel-thom January 8, 2025 17:44
@jd-lara jd-lara merged commit 74accff into main Jan 8, 2025
9 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