aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-12-20 23:50:04 +0800
committerAaron LI <aly@aaronly.me>2018-12-20 23:50:04 +0800
commit97b8badebfe5067fad1c012d4955b20dcc1ed24b (patch)
treebfc8e2f0ca886979dc78eecab5a716e9283416b3 /fg21sim/extragalactic
parent76942d3fa965d4b8fd5e9726bd93b54d0c0f5dab (diff)
downloadfg21sim-97b8badebfe5067fad1c012d4955b20dcc1ed24b.tar.bz2
PEP8 fix
Diffstat (limited to 'fg21sim/extragalactic')
-rw-r--r--fg21sim/extragalactic/clusters/solver.py4
-rw-r--r--fg21sim/extragalactic/pointsources/psparams.py4
2 files changed, 5 insertions, 3 deletions
diff --git a/fg21sim/extragalactic/clusters/solver.py b/fg21sim/extragalactic/clusters/solver.py
index ad5c320..10fd8e4 100644
--- a/fg21sim/extragalactic/clusters/solver.py
+++ b/fg21sim/extragalactic/clusters/solver.py
@@ -77,9 +77,9 @@ class FokkerPlanckSolver:
"""
Solve the Fokker-Planck equation:
- ∂u(x,t) ∂ / ∂u(x) \ u(x,t)
+ ∂u(x,t) ∂ [ ∂u(x) ] u(x,t)
------- = -- | B(x)u(x) + C(x)----- | + Q(x,t) - ------
- ∂t ∂x \ ∂x / T(x,t)
+ ∂t ∂x [ ∂x ] T(x,t)
u(x,t) : distribution/spectrum w.r.t. x at different times
B(x,t) : advection coefficient
diff --git a/fg21sim/extragalactic/pointsources/psparams.py b/fg21sim/extragalactic/pointsources/psparams.py
index 7c3a93a..823af72 100644
--- a/fg21sim/extragalactic/pointsources/psparams.py
+++ b/fg21sim/extragalactic/pointsources/psparams.py
@@ -19,6 +19,7 @@ from astropy.cosmology import FlatLambdaCDM
class PixelParams():
"""
A class to transform cosmology distance to angles or pixels.
+
Parameters
------------
H0: float
@@ -28,11 +29,12 @@ class PixelParams():
ang_res: float
Angular resolution, i.e. degree per pixel. (May be useless)
ang_total: list
- Total angles of the simulated sky region,whose unit is degree (\deg)
+ Total angles of the simulated sky region, whose unit is degree
z : float
Redshift
scale: float
The real object scale.
+
Example
------------
>>> PixelParams = PixelParams(img_size=(1024,1024),ang_total=(5,5))