File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 += "\n apply 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
You can’t perform that action at this time.
0 commit comments