Skip to content

Commit 861bf3b

Browse files
committed
updating logging messages
1 parent f20b578 commit 861bf3b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

aurora/pipelines/feature_weights.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,10 @@ def calculate_weights(
206206
weights = None
207207
# loop the feature weight specs
208208
for fws in chws.feature_weight_specs:
209+
if fws.weight_kernels is None:
210+
msg = f"Feature weight spec {fws} has no weight kernels defined, skipping"
211+
logger.warning(msg)
212+
continue # skip this feature weight spec
209213
msg = f"feature weight spec: {fws}"
210214
logger.debug(msg)
211215
feature = fws.feature
@@ -224,10 +228,10 @@ def calculate_weights(
224228
weights *= wk.evaluate(feature.data)
225229
# chws.weights[fws.feature.name] = weights
226230
chws.weights = weights
227-
logger.info(f"Computed weights for {chws.output_channels} using {chws.combination_style} combination style.")
231+
logger.info(f"Computed weights for {str(chws.output_channels)} using {str(chws.combination_style)} combination style.")
228232

229233
else:
230-
msg = f"chws.combination_style {chws.combination_style} not implemented"
234+
msg = f"chws.combination_style {str(chws.combination_style)} not implemented"
231235
raise ValueError(msg)
232236

233237
return

aurora/pipelines/process_mth5.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ def process_mth5_legacy(
193193
calculate_weights(dec_level_config, tfk_dataset)
194194
except Exception as e:
195195
msg = f"Feature weights calculation Failed -- procesing without weights -- {e}"
196-
logger.warning(msg)
196+
#logger.warning(msg)
197+
logger.exception(msg)
197198

198199
ttfz_obj = process_tf_decimation_level(
199200
tfk.config,

0 commit comments

Comments
 (0)