Fusion4Energy / F4Enix

API for parsing and post-processing many MC simulations related files
Other
12 stars 10 forks source link

Issue 93 shift ww coordinates #98

Closed AlvaroCubi closed 2 months ago

AlvaroCubi commented 2 months ago

Description

The VTK export of a GVR of cartesian coordinates suffered an incorrect translation when the origin was not 0,0,0.

Fixes #93

Type of change

Testing

Tested doing a full workflow of creating a GVR from a FMESH file, exporting as VTK and then checking in Paraview that the coordinates were correct.

Checklist:

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Files with missing lines Coverage Δ
src/f4enix/input/ww_gvr/geometry.py 94.78% <100.00%> (-0.09%) :arrow_down:
src/f4enix/input/ww_gvr/models.py 100.00% <100.00%> (ø)
src/f4enix/input/ww_gvr/utils.py 100.00% <100.00%> (ø)
src/f4enix/input/ww_gvr/ww_parser.py 98.39% <100.00%> (+0.02%) :arrow_up: