Skip to content

Commit

Permalink
#95: update expected ccm_example output
Browse files Browse the repository at this point in the history
  • Loading branch information
tlamonthezie committed Jul 31, 2024
1 parent 12d4192 commit 7c46e2f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/config/ccm-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ viz:
z_ranks: 1
object_jitter: 0.5
rank_qoi: load
object_qoi: load
object_qoi: shared_block_id
save_meshes: true
save_pngs: true
force_continuous_object_qoi: true
Expand Down
Binary file modified tests/expected/ccm_example/ccm_example0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions tests/expected/ccm_example/ccm_example_jitter_dims.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
2,-0.16867544800912748,0,0
1,0.12625228724267906,0,0
0,-0.1287043266364859,0,0
4 changes: 2 additions & 2 deletions tests/expected/ccm_example/ccm_example_object_mesh_0.vtp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<DataArray type="Float64" Name="bytes" format="appended" RangeMin="10000" RangeMax="35000" offset="84" />
</CellData>
<Points>
<DataArray type="Float32" Name="Points" NumberOfComponents="3" format="appended" RangeMin="0.11671635509" RangeMax="0.91873401403" offset="140" />
<DataArray type="Float32" Name="Points" NumberOfComponents="3" format="appended" RangeMin="0.2087507695" RangeMax="0.91566228867" offset="140" />
</Points>
<Verts>
<DataArray type="Int64" Name="connectivity" format="appended" RangeMin="" RangeMax="" offset="200" />
Expand All @@ -31,6 +31,6 @@
</Piece>
</PolyData>
<AppendedData encoding="base64">
_AQAAAACAAAAYAAAAEgAAAA==eJxjYAADBwjFA6VFHAAHeADhAQAAAACAAAABAAAACQAAAA==eJx7AAAA4QDhAQAAAACAAAAYAAAAGAAAAA==eJxjYACCrBsOIIqh4zCEFn/oAAAtYwRGAQAAAACAAAAkAAAAGgAAAA==eJw7eN5kHwMU/OF4bwtjqxtl28PYAJM9BbY=AAAAAACAAAAAAAAAAAAAAACAAAAAAAAAAQAAAACAAAAwAAAAFAAAAA==eJxjYIAARgZUwIQmDuMDAACoAAc=AQAAAACAAAAYAAAAEAAAAA==eJxjYoAAFijNBqUBALgADQ==AAAAAACAAAAAAAAAAAAAAACAAAAAAAAAAAAAAACAAAAAAAAAAAAAAACAAAAAAAAA
_AQAAAACAAAAYAAAAEgAAAA==eJxjYAADBwjFA6VFHAAHeADhAQAAAACAAAABAAAACQAAAA==eJx7AAAA4QDhAQAAAACAAAAYAAAAGAAAAA==eJxjYACCrBsOIIqh4zCEFn/oAAAtYwRGAQAAAACAAAAkAAAAGgAAAA==eJxjmxm2jwEKDh8KtYOxb2Rk2cPYAH7eBbU=AAAAAACAAAAAAAAAAAAAAACAAAAAAAAAAQAAAACAAAAwAAAAFAAAAA==eJxjYIAARgZUwIQmDuMDAACoAAc=AQAAAACAAAAYAAAAEAAAAA==eJxjYoAAFijNBqUBALgADQ==AAAAAACAAAAAAAAAAAAAAACAAAAAAAAAAAAAAACAAAAAAAAAAAAAAACAAAAAAAAA
</AppendedData>
</VTKFile>
Binary file added tests/expected/ccm_example/default0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions tests/unit/render/test_render.cc
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,8 @@ TEST_P(RenderTest, test_render_from_config_with_png) {
auto object_jitter_dims_file_out = fmt::format("{}{}_{}", output_dir, output_file_stem, "jitter_dims.csv");
if (std::filesystem::exists(object_jitter_dims_file_in)) {
render.setJitterDims(loadJitterDims(object_jitter_dims_file_in));
} else {
saveJitterDims(render.getJitterDims(), object_jitter_dims_file_out);
}
saveJitterDims(render.getJitterDims(), object_jitter_dims_file_out);

render.generate(font_size, win_size);

Expand Down

0 comments on commit 7c46e2f

Please sign in to comment.