aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/galactic
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-08-26 09:51:16 +0800
committerAaron LI <aly@aaronly.me>2017-08-26 09:51:16 +0800
commit4b5967f7c51a340ecbfb418fabf62e292b65020d (patch)
treedb1cba385777ab8030222fd621c19c8379c28ee9 /fg21sim/galactic
parente65379d62e5f92f96603775e8806ab32b97c60a9 (diff)
downloadfg21sim-4b5967f7c51a340ecbfb418fabf62e292b65020d.tar.bz2
sky.py: Rename load() -> open(), read() -> load()
Diffstat (limited to 'fg21sim/galactic')
-rw-r--r--fg21sim/galactic/freefree.py6
-rw-r--r--fg21sim/galactic/synchrotron.py6
2 files changed, 6 insertions, 6 deletions
diff --git a/fg21sim/galactic/freefree.py b/fg21sim/galactic/freefree.py
index a1fcf6d..2db6f84 100644
--- a/fg21sim/galactic/freefree.py
+++ b/fg21sim/galactic/freefree.py
@@ -97,13 +97,13 @@ class FreeFree:
"""
sky = get_sky(self.configs)
logger.info("Loading H[alpha] map ...")
- self.halphamap = sky.load(self.halphamap_path)
+ self.halphamap = sky.open(self.halphamap_path)
# Validate input map unit
if self.halphamap_unit != au.Unit("Rayleigh"):
raise ValueError("unsupported Halpha map unit: {0}".format(
self.halphamap_unit))
logger.info("Loading dust map ...")
- self.dustmap = sky.load(self.dustmap_path)
+ self.dustmap = sky.open(self.dustmap_path)
# Validate input map unit
if self.dustmap_unit != au.Unit("MJy / sr"):
raise ValueError("unsupported dust map unit: {0}".format(
@@ -256,7 +256,7 @@ class FreeFree:
_preprocessed : bool
This attribute presents and is ``True`` after the preparation
procedures are performed, which indicates that it is ready to
- do the final simulations.
+ do the subsequent simulations.
"""
if hasattr(self, "_preprocessed") and self._preprocessed:
return
diff --git a/fg21sim/galactic/synchrotron.py b/fg21sim/galactic/synchrotron.py
index 5881c4c..9f89217 100644
--- a/fg21sim/galactic/synchrotron.py
+++ b/fg21sim/galactic/synchrotron.py
@@ -75,9 +75,9 @@ class Synchrotron:
"""Load the template map and spectral index map."""
sky = get_sky(self.configs)
logger.info("Loading template map ...")
- self.template = sky.load(self.template_path)
+ self.template = sky.open(self.template_path)
logger.info("Loading spectral index map ...")
- self.indexmap = sky.load(self.indexmap_path)
+ self.indexmap = sky.open(self.indexmap_path)
def _add_smallscales(self):
"""
@@ -194,7 +194,7 @@ class Synchrotron:
_preprocessed : bool
This attribute presents and is ``True`` after the preparation
procedures are performed, which indicates that it is ready to
- do the final simulations.
+ do the subsequent simulations.
"""
if hasattr(self, "_preprocessed") and self._preprocessed:
return