Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed except, typos, and message
  • Loading branch information
makdl committed Apr 13, 2021
commit 7012fe23b333a6181eda9ad1f03bc0b9386f5af9
2 changes: 1 addition & 1 deletion spatialpy/Mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def read_msh_file(cls, filename):
try:
import meshio
except ImportError as e:
raise MeshError("The python package 'meshio' is not istaled.")
raise MeshError("The Python package 'meshio' is not installed.")

return cls.import_meshio_object(meshio.msh_io.read(filename))

Expand Down
5 changes: 2 additions & 3 deletions spatialpy/Result.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@

try:
import vtk
except:
print('''Using fallback VTK reader. This is significantly slower than the official VTK package.
For best performance please install the VTK Python package: \'python3 -m pip install vtk\'''')
except ImportError as e:
print('''The Python package 'vtk' is not installed. Using integrated VTK reader. This is significantly slower than the official VTK package.''')
from spatialpy.VTKReader import VTKReader

common_rgb_values=['#1f77b4','#ff7f0e','#2ca02c','#d62728','#9467bd','#8c564b','#e377c2','#7f7f7f',
Expand Down