@@ -138,20 +138,19 @@ def process(self, input_data):
138138 model .meta .cal_step .adaptive_trace_model = "COMPLETE"
139139 if self .save_intermediate_results :
140140 _ , full_spline , used_spline , linear , residual = results
141- basepath = model .meta .filename
142141
143- outpath = self .make_output_path (basepath = basepath , suffix = "spline_full" )
142+ outpath = self .make_output_path (suffix = "spline_full" )
144143 full_spline .save (outpath )
145144 full_spline .close ()
146145 log .info (f"Saved full spline model in { outpath } " )
147146
148- outpath = self .make_output_path (basepath = basepath , suffix = "spline_used" )
147+ outpath = self .make_output_path (suffix = "spline_used" )
149148 used_spline .save (outpath )
150149 used_spline .close ()
151150 log .info (f"Saved spline model for compact sources in { outpath } " )
152151
153152 if linear is not None :
154- outpath = self .make_output_path (basepath = basepath , suffix = "linear_interp" )
153+ outpath = self .make_output_path (suffix = "linear_interp" )
155154 linear .save (outpath )
156155 linear .close ()
157156 log .info (f"Saved linearly interpolated data in { outpath } " )
@@ -160,7 +159,7 @@ def process(self, input_data):
160159 f"No linearly interpolated data to save for oversample={ self .oversample } "
161160 )
162161 if residual is not None :
163- outpath = self .make_output_path (basepath = basepath , suffix = "spline_residual" )
162+ outpath = self .make_output_path (suffix = "spline_residual" )
164163 residual .save (outpath )
165164 residual .close ()
166165 log .info (f"Saved spline residuals in { outpath } " )
0 commit comments