diff --git a/src/condor/contrib.py b/src/condor/contrib.py index bfabc9e7..41c3a468 100644 --- a/src/condor/contrib.py +++ b/src/condor/contrib.py @@ -670,7 +670,11 @@ def resample(self, dt, include_output=True, include_events=True, max_deg=3): return self new_self = model.__new__(model) - new_self.implementation = self.implementation + # TODO: add option to rebuild the implemention + if getattr(self, "implementation", False): + new_self.implementation = self.implementation + else: # override include_output if implementation is not found + include_output = False new_self._original_instance = original_instance new_self.bind_field(self.parameter) new_self.input_kwargs = self.input_kwargs