Skip to content

Commit 068b3df

Browse files
committed
add notes for weight application
1 parent c13c0b4 commit 068b3df

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

aurora/pipelines/process_mth5.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,4 +866,36 @@ def calculate_weights(
866866
"""
867867
msg = "Weights calculation Not implemented"
868868
logger.error(msg)
869+
870+
# loop the channel weight specs
871+
for chws in dec_level_config.channel_weight_specs:
872+
873+
msg = f"{chws}"
874+
logger.info(msg)
875+
if chws.combination_style == "multiplication":
876+
print(f"chws.combination_style {chws.combination_style}")
877+
# loop the feature weight specs
878+
for fws in chws.feature_weight_specs:
879+
msg = f"feature weight spec: {fws}"
880+
logger.info(msg)
881+
feature = fws.feature
882+
msg = f"feature: {feature}"
883+
logger.info(msg)
884+
# TODO: confirm that the feature object has its data
885+
print(len(feature.data))
886+
887+
# TODO: Now apply the fws weighting to the feature data
888+
# Hopefully this is independent of the feature.
889+
890+
for wk in fws.weight_kernels:
891+
print(wk)
892+
msg = "TODO -- finish weighting here"
893+
msg += "\napply weights to data"
894+
895+
raise NotImplementedError(msg)
896+
print("now Take product of weighted data")
897+
else:
898+
msg = f"chws.combination_style {chws.combination_style} not implemented"
899+
raise ValueError(msg)
900+
869901
return

0 commit comments

Comments
 (0)