@@ -161,6 +161,7 @@ def extract_aperture(
161161 deblend_cont : float = 0.005 ,
162162 save_plots : bool = True ,
163163 save_aperture_params : bool = True ,
164+ save_input : bool = True ,
164165) -> tuple [np .ndarray , WCS , float , float , bool ]:
165166 """Calculates the aperture for a given galaxy.
166167
@@ -193,6 +194,7 @@ def extract_aperture(
193194 To entirely disable deblending, set to 1.0.
194195 save_plots: If `True`, the mask and galaxy aperture figures are saved.
195196 save_aperture_params: If `True`, the extracted mask parameters are saved into a pickle file.
197+ save_input: Whether to save the input parameters.
196198
197199 Returns
198200 -------
@@ -202,6 +204,11 @@ def extract_aperture(
202204 scale: Scale for the Kron radius.
203205 flip: Whether to flip the orientation of the aperture.
204206 """
207+ input_params = locals () # dictionary
208+ # save input parameters
209+ if save_input is True :
210+ inputs_file = Path (workdir , name , survey , "input_aperture_parameters.csv" )
211+ store_input (input_params , inputs_file )
205212 # initial checks
206213 check_survey_validity (survey )
207214 check_work_dir (workdir )
0 commit comments