aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-07-18 13:50:58 +0800
committerAaron LI <aly@aaronly.me>2017-07-18 13:50:58 +0800
commitd1a3d3091109e8c63fe752069189471ee22c6f6b (patch)
treea666da9c0f3c866cdaf3e52b3115228efbab09a4
parent5a1cbfa23be4c2336c6fe8545a2e1bb01ba9d727 (diff)
downloadfg21sim-d1a3d3091109e8c63fe752069189471ee22c6f6b.tar.bz2
Rename utils/rotate.py to utils/transform.py
Signed-off-by: Aaron LI <aly@aaronly.me>
-rw-r--r--fg21sim/utils/grid.py2
-rw-r--r--fg21sim/utils/transform.py (renamed from fg21sim/utils/rotate.py)7
2 files changed, 5 insertions, 4 deletions
diff --git a/fg21sim/utils/grid.py b/fg21sim/utils/grid.py
index 0992459..dbc7f36 100644
--- a/fg21sim/utils/grid.py
+++ b/fg21sim/utils/grid.py
@@ -10,7 +10,7 @@ import numpy as np
import numba as nb
from .draw import ellipse
-from .rotate import rotate_center
+from .transform import rotate_center
from .healpix import ang2pix_ring
diff --git a/fg21sim/utils/rotate.py b/fg21sim/utils/transform.py
index dbf31e7..3a3e541 100644
--- a/fg21sim/utils/rotate.py
+++ b/fg21sim/utils/transform.py
@@ -1,8 +1,8 @@
-# Copyright (c) 2016 Weitian LI <liweitianux@live.com>
+# Copyright (c) 2016-2017 Weitian LI <weitian@aaronly.me>
# MIT license
"""
-Image (only gray-scale image, i.e., matrix) rotate utilities.
+Image (only gray-scale image, i.e., matrix) transformation utilities.
References
----------
@@ -26,7 +26,8 @@ import numba as nb
nb.boolean, nb.float64)],
nopython=True)
def rotate_center(imgin, angle, interp=True, reshape=True, fill_value=0.0):
- """Rotate the input image (only gray-scale image currently supported)
+ """
+ Rotate the input image (only gray-scale image currently supported)
by a given angle about its center.
Parameters