From 45759a162867ec585b5708e113641d4fbdd4aedb Mon Sep 17 00:00:00 2001 From: Joanne Bogart Date: Wed, 3 Jul 2024 11:43:30 -0700 Subject: [PATCH] eliminate commented-out code --- skycatalogs/catalog_creator.py | 4 ---- skycatalogs/skyCatalogs.py | 1 - skycatalogs/utils/config_utils.py | 3 --- 3 files changed, 8 deletions(-) diff --git a/skycatalogs/catalog_creator.py b/skycatalogs/catalog_creator.py index 41053230..d2e1a878 100644 --- a/skycatalogs/catalog_creator.py +++ b/skycatalogs/catalog_creator.py @@ -1173,10 +1173,6 @@ def write_config(self, overwrite=False, path_only=False): assemble_object_types(self._pkg_root, galaxy_nside=self._galaxy_nside)) - # Following will be in run_options - # config.add_key('galaxy_magnitude_cut', self._mag_cut) - # config.add_key('knots_magnitude_cut', self._knots_mag_cut) - inputs = {'galaxy_truth': self._galaxy_truth} if self._star_truth: inputs['star_truth'] = self._star_truth diff --git a/skycatalogs/skyCatalogs.py b/skycatalogs/skyCatalogs.py index 80a594b9..d6064ceb 100644 --- a/skycatalogs/skyCatalogs.py +++ b/skycatalogs/skyCatalogs.py @@ -644,7 +644,6 @@ def get_object_type_by_hp(self, hp, object_type, region=None, mjd=None, msg = f'object type {object_type} not available for this catalog' self._logger.warning(msg) return object_list - # if hp not in self._hp_info: if hp not in self.hps_by_type(object_type): msg = f'In SkyCatalog.get_object_type_by_hp, healpix {hp} ' msg += f'intersects region but has no data file for {object_type}' diff --git a/skycatalogs/utils/config_utils.py b/skycatalogs/utils/config_utils.py index 6cce93ec..f5bc3b58 100644 --- a/skycatalogs/utils/config_utils.py +++ b/skycatalogs/utils/config_utils.py @@ -317,11 +317,8 @@ def assemble_object_types(pkg_root, galaxy_nside=32): def assemble_SED_models(bins): - # tophat_d = {'units': 'angstrom', 'bin_parameters': ['start', 'width']} - # tophat_d['bins'] = bins to_return = dict() file_nm_d = {'units': 'nm'} - # return {'tophat': tophat_d, 'file_nm': file_nm_d} to_return['file_nm'] = file_nm_d if bins: tophat_d = {'units': 'angstrom', 'bin_parameters': ['start', 'width']}