From 4c86653bc2dea5a27acb796570112d775e17133e Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 17 May 2017 09:47:57 +0800 Subject: configs : Drop "output/filetype"; only support FITS --- fg21sim/galactic/freefree.py | 5 ----- fg21sim/galactic/snr.py | 5 ----- fg21sim/galactic/synchrotron.py | 5 ----- 3 files changed, 15 deletions(-) (limited to 'fg21sim/galactic') diff --git a/fg21sim/galactic/freefree.py b/fg21sim/galactic/freefree.py index 878a833..44bd9d5 100644 --- a/fg21sim/galactic/freefree.py +++ b/fg21sim/galactic/freefree.py @@ -184,11 +184,6 @@ class FreeFree: } data.update(kwargs) filename = self.filename_pattern.format(**data) - filetype = self.configs.getn("output/filetype") - if filetype == "fits": - filename += ".fits" - else: - raise NotImplementedError("unsupported filetype: %s" % filetype) filepath = os.path.join(self.output_dir, filename) return filepath diff --git a/fg21sim/galactic/snr.py b/fg21sim/galactic/snr.py index b493ee5..088a2ae 100644 --- a/fg21sim/galactic/snr.py +++ b/fg21sim/galactic/snr.py @@ -322,11 +322,6 @@ class SuperNovaRemnants: } data.update(kwargs) filename = self.filename_pattern.format(**data) - filetype = self.configs.getn("output/filetype") - if filetype == "fits": - filename += ".fits" - else: - raise NotImplementedError("unsupported filetype: %s" % filetype) filepath = os.path.join(self.output_dir, filename) return filepath diff --git a/fg21sim/galactic/synchrotron.py b/fg21sim/galactic/synchrotron.py index 09eefd6..8efa2db 100644 --- a/fg21sim/galactic/synchrotron.py +++ b/fg21sim/galactic/synchrotron.py @@ -146,11 +146,6 @@ class Synchrotron: } data.update(kwargs) filename = self.filename_pattern.format(**data) - filetype = self.configs.getn("output/filetype") - if filetype == "fits": - filename += ".fits" - else: - raise NotImplementedError("unsupported filetype: %s" % filetype) filepath = os.path.join(self.output_dir, filename) return filepath -- cgit v1.2.2