diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-10-11 22:38:25 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-10-11 22:38:25 +0800 |
commit | 1e463879965e2b39c16bbfb9a098fde26bd4284b (patch) | |
tree | b50d661fcd3b39788e2ba887a9fd7f5b6d3a1f9d | |
parent | 0ce54992d3f4f3c64083337f71418cfec5326409 (diff) | |
download | fg21sim-1e463879965e2b39c16bbfb9a098fde26bd4284b.tar.bz2 |
Tweak the docstring styles
-rw-r--r-- | fg21sim/galactic/freefree.py | 9 | ||||
-rw-r--r-- | fg21sim/galactic/synchrotron.py | 9 |
2 files changed, 12 insertions, 6 deletions
diff --git a/fg21sim/galactic/freefree.py b/fg21sim/galactic/freefree.py index 0dd131d..fa6238a 100644 --- a/fg21sim/galactic/freefree.py +++ b/fg21sim/galactic/freefree.py @@ -21,7 +21,8 @@ logger = logging.getLogger(__name__) class FreeFree: - """Simulate the diffuse Galactic free-free emission. + """ + Simulate the diffuse Galactic free-free emission. The [Dickinson2003] method is followed to derive the free-free template. The H\alpha survey map [Finkbeiner2003] is first corrected for dust @@ -91,7 +92,8 @@ class FreeFree: def _load_halphamap(self): """Load the H{\alpha} map, and upgrade/downgrade the resolution - to match the output Nside.""" + to match the output Nside. + """ self.halphamap, self.halphamap_header = read_fits_healpix( self.halphamap_path) halphamap_nside = self.halphamap_header["NSIDE"] @@ -109,7 +111,8 @@ class FreeFree: def _load_dustmap(self): """Load the dust map, and upgrade/downgrade the resolution - to match the output Nside.""" + to match the output Nside. + """ self.dustmap, self.dustmap_header = read_fits_healpix( self.dustmap_path) dustmap_nside = self.dustmap_header["NSIDE"] diff --git a/fg21sim/galactic/synchrotron.py b/fg21sim/galactic/synchrotron.py index 2809bad..a4402c2 100644 --- a/fg21sim/galactic/synchrotron.py +++ b/fg21sim/galactic/synchrotron.py @@ -21,7 +21,8 @@ logger = logging.getLogger(__name__) class Synchrotron: - """Simulate the diffuse Galactic synchrotron emission based on an + """ + Simulate the diffuse Galactic synchrotron emission based on an existing template. Parameters @@ -75,7 +76,8 @@ class Synchrotron: def _load_template(self): """Load the template map, and upgrade/downgrade the resolution - to match the output Nside.""" + to match the output Nside. + """ self.template, self.template_header = read_fits_healpix( self.template_path) template_nside = self.template_header["NSIDE"] @@ -89,7 +91,8 @@ class Synchrotron: def _load_indexmap(self): """Load the spectral index map, and upgrade/downgrade the resolution - to match the output Nside.""" + to match the output Nside. + """ self.indexmap, self.indexmap_header = read_fits_healpix( self.indexmap_path) indexmap_nside = self.indexmap_header["NSIDE"] |