Skip to content

Commit

Permalink
Enhance previous commit code
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyPechnikov committed Mar 16, 2024
1 parent d8bbdba commit dcefc79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygmtsar/pygmtsar/Stack_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def export_vtk(self, data, name, caption='Exporting WGS84 VTK(s)', topo='auto',
"""
import xarray as xr
import numpy as np
from vtk import vtkStructuredGridWriter, vtkStringArray
from vtk import vtkStructuredGridWriter, vtkStringArray, VTK_BINARY
from tqdm.auto import tqdm
import os

Expand Down Expand Up @@ -321,6 +321,6 @@ def export_vtk(self, data, name, caption='Exporting WGS84 VTK(s)', topo='auto',
writer = vtkStructuredGridWriter()
writer.SetFileName(filename)
writer.SetInputData(vtk_grid)
writer.SetFileType(vtk.VTK_BINARY)
writer.SetFileType(VTK_BINARY)
writer.Write()
pbar.update(1)

0 comments on commit dcefc79

Please sign in to comment.