Ejemplo n.º 1
0
 def create_from_targetscaler(cls, targetscaler):
     """method to pass scalers from TargetScaler to a MultiScaler"""
     single_scalers = []
     for scaler in targetscaler.unscaled_scalers:
         single_scalers.append(scaler)
     single_scalers.extend(targetscaler.single_scalers)
     multiscaler = MultiScaler(single_scalers)
     multiscaler.observers = targetscaler.observers
     return multiscaler
Ejemplo n.º 2
0
 def create_from_targetscaler(cls, targetscaler):
     """method to pass scalers from TargetScaler to a MultiScaler"""
     single_scalers = []
     for scaler in targetscaler.unscaled_scalers:
         # scaler.select_reflections_for_scaling(for_multi=True)
         single_scalers.append(scaler)
     single_scalers.extend(targetscaler.single_scalers)
     multiscaler = MultiScaler(targetscaler.params,
                               [targetscaler.experiment], single_scalers)
     multiscaler.observers = targetscaler.observers
     return multiscaler