Skip to content

Commit

Permalink
formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Sep 29, 2023
1 parent 5e83cfb commit 8c4e109
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/simulation/hdf_simulation_store.jl
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,12 @@ function write_result!(
output_cache = get_output_cache(store.cache, model_name, key)
cur_size = get_size(store.cache)

Check warning on line 596 in src/simulation/hdf_simulation_store.jl

View check run for this annotation

Codecov / codecov/patch

src/simulation/hdf_simulation_store.jl#L595-L596

Added lines #L595 - L596 were not covered by tests

add_result!(output_cache, index, permutedims(data.data, (3, 1, 2)), is_full(store.cache, cur_size))
add_result!(

Check warning on line 598 in src/simulation/hdf_simulation_store.jl

View check run for this annotation

Codecov / codecov/patch

src/simulation/hdf_simulation_store.jl#L598

Added line #L598 was not covered by tests
output_cache,
index,
permutedims(data.data, (3, 1, 2)),
is_full(store.cache, cur_size),
)

if get_dirty_size(output_cache) >= get_min_flush_size(store.cache)
discard = !should_keep_in_cache(output_cache)

Check warning on line 606 in src/simulation/hdf_simulation_store.jl

View check run for this annotation

Codecov / codecov/patch

src/simulation/hdf_simulation_store.jl#L605-L606

Added lines #L605 - L606 were not covered by tests
Expand Down

0 comments on commit 8c4e109

Please sign in to comment.