Source code for pycif.plugins.controlvects.standard.crop



[docs] def crop(self, datei, datef): """Crop the control vector temporally Args: self datei datef """ # Loop over components components = self.datavect.components for comp in components.attributes: component = getattr(components, comp) # Skip if component does not have parameters if not hasattr(component, "parameters"): continue for trcr in component.parameters.attributes: tracer = getattr(component.parameters, trcr) if not tracer.iscontrol: continue