Skip to content

Commit e2b77c6

Browse files
committed
Update process_aurora.py
1 parent 0e9754a commit e2b77c6

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

mtpy/processing/aurora/process_aurora.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,15 +329,19 @@ def process(
329329
if len(processed.keys()) > 1:
330330
if merge:
331331
### merge transfer functions according to merge dict
332-
processed["combined"] = self.merge_transfer_functions(
333-
processed
334-
)
332+
combined_tf = self.merge_transfer_functions(processed)
333+
combined_tf_id = self.local_station_id
334+
if self.remote_station_id:
335+
combined_tf_id += f"_{self.remote_rr_station_id}"
336+
combined_tf_id += "_combined"
337+
combined_tf.tf_id = combined_tf_id
338+
processed["combined"] = {"processed": True, "tf": combined_tf}
335339

336340
if save_to_mth5:
337341
### add tf to local MTH5
338342
self._add_tf_to_local_mth5(processed)
339343

340-
return tf_processed
344+
return processed
341345

342346
def _validate_config(self, config):
343347
"""

0 commit comments

Comments
 (0)