You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
There is not feedback on an incorrect projection when initializing a mk instance. Also, there is an unclear error upon get_projection.
MeshKernel constructor is not parametrised by a string:
class MeshKernel:
"""This class is the entry point for interacting with the MeshKernel library"""
def __init__(self, projection: ProjectionType = ProjectionType.CARTESIAN):
"""Constructor of MeshKernel
Args:
projection (ProjectionType, optional): The projection type. Default is `ProjectionType.CARTESIAN`.
Raises:
OSError: This gets raised in case MeshKernel is used within an unsupported OS.
"""
Describe the bug
There is not feedback on an incorrect
projection
when initializing a mk instance. Also, there is an unclear error uponget_projection
.To Reproduce
Raises ValueError:
Also, when aquiring the projectiontype, there is no useful feedback about the available options:
Expected behavior
Feedback upon initialization about the options. Strings should be parsed to enum automatically.
Version info (please complete the following information):
The text was updated successfully, but these errors were encountered: