Skip to content

Commit

Permalink
bugfixes vtk
Browse files Browse the repository at this point in the history
  • Loading branch information
miili committed Oct 27, 2023
1 parent 8e419e2 commit 3f06448
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lassie/tracers/fast_marching/fast_marching.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ def export_vtk(self, filename: Path, reference: Location | None = None) -> None:
str(filename),
self._east_coords + offset[0],
self._north_coords + offset[1],
-(self._depth_coords + offset[2]),
pointData={"travel_times": self.travel_times},
np.array((-self._depth_coords + offset[2])[::-1]),
pointData={"travel_time": np.array(self.travel_times[:, :, ::-1])},
)
logger.debug(
"vtk: exported travel times of %s to %s",
Expand Down
4 changes: 2 additions & 2 deletions lassie/tracers/fast_marching/velocity_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ def export_vtk(self, filename: Path, reference: Location | None = None) -> None:
str(filename),
self._east_coords + offset[0],
self._north_coords + offset[1],
-(self._depth_coords + offset[2]),
pointData={"velocity": self._velocity_model},
np.array((-self._depth_coords + offset[2])[::-1]),
pointData={"velocity": np.array(self._velocity_model[:, :, ::-1])},
)
logger.info("vtk: exported velocity model to %s", out_file)

Expand Down

0 comments on commit 3f06448

Please sign in to comment.