From 7aa96d680e3a5b3ef9b6bc51860cbf8c5d86dcf3 Mon Sep 17 00:00:00 2001 From: shibeiji Date: Tue, 28 Sep 2021 20:01:40 +0800 Subject: [PATCH] code review of Geometry for MindElec --- MindElec/mindelec/geometry/geometry_base.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MindElec/mindelec/geometry/geometry_base.py b/MindElec/mindelec/geometry/geometry_base.py index 2717ccf88..1a7006e23 100755 --- a/MindElec/mindelec/geometry/geometry_base.py +++ b/MindElec/mindelec/geometry/geometry_base.py @@ -107,8 +107,10 @@ class Geometry: Args: name (str): name of the geometry. dim (int): number of dimensions. - coord_min (Union[list[int, float], tuple[int, float], numpy.ndarray]): minimal coordinate of the geometry. - coord_max (Union[list[int, float], tuple[int, float], numpy.ndarray]): maximal coordinate of the geometry. + coord_min (Union[int, float, list[int, float], tuple[int, float], numpy.ndarray]): minimal + coordinate of the geometry. + coord_max (Union[int, float, list[int, float], tuple[int, float], numpy.ndarray]): maximal + coordinate of the geometry. dtype (numpy.dtype): Data type of sampled point data type. Default: numpy.float32. sampling_config (SamplingConfig): sampling configuration. Default: None -- Gitee