Skip to content

Commit

Permalink
eliminate commented-out code
Browse files Browse the repository at this point in the history
  • Loading branch information
JoanneBogart committed Jul 3, 2024
1 parent aa68872 commit 45759a1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions skycatalogs/catalog_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion skycatalogs/skyCatalogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
Expand Down
3 changes: 0 additions & 3 deletions skycatalogs/utils/config_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']}
Expand Down

0 comments on commit 45759a1

Please sign in to comment.