Skip to content

Commit

Permalink
Allow artificial scaling of source pixel images
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleAalbers committed Sep 12, 2022
1 parent 2b3950d commit d28e29a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions paltas/Sources/galaxy_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class GalaxyCatalog(SourceBase):
"""
required_parameters = ('random_rotation','output_ab_zeropoint',
'z_source','center_x','center_y')
optional_parameters = ('pixel_width_multiplier',)
# This parameter must be set by class inheriting GalaxyCatalog
ab_zeropoint = None

Expand Down Expand Up @@ -162,6 +163,9 @@ def draw_source(self, catalog_i=None, phi=None):

pixel_width *= self.z_scale_factor(metadata['z'], z_new)

# Option to artificially make sources bigger or smaller
pixel_width *= self.source_parameters.get('pixel_width_multiplier', 1)

# Convert to kwargs for lenstronomy
return (
['INTERPOL'],
Expand Down

0 comments on commit d28e29a

Please sign in to comment.