From 4b5967f7c51a340ecbfb418fabf62e292b65020d Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 26 Aug 2017 09:51:16 +0800 Subject: sky.py: Rename load() -> open(), read() -> load() --- fg21sim/galactic/freefree.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fg21sim/galactic/freefree.py') 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 -- cgit v1.2.2