diff --git a/geomagio/Controller.py b/geomagio/Controller.py index 8d9b42fd733646b52da2f3743bf96710a53d232d..8e8edad30bbfd9cee1a830f35af895d2c3aa0d8e 100644 --- a/geomagio/Controller.py +++ b/geomagio/Controller.py @@ -159,7 +159,9 @@ class Controller(object): timeseries=timeseries, renames=options.rename_input_channel) processed = algorithm.process(timeseries) - processed.trim(starttime=options.starttime, endtime=options.endtime) + # trim if --no-trim is not set + if not options.trim: + processed.trim(starttime=options.starttime, endtime=options.endtime) if options.rename_output_channel: processed = self._rename_channels( timeseries=processed,