clarified the _try_apply reasoning
@@ -36,7 +36,13 @@ class MNEPreproc():
try:
self._try_apply(raw_or_epochs)
except RuntimeError:
- # maybe data need to be loaded
+ # Maybe the function needs the data to be loaded
+ # and the data was not loaded yet
+ # Not all mne functions need data to be loaded,
+ # most importantly the 'crop' function can be
+ # lazily applied without preloading data
+ # which can make overall preprocessing pipeline
+ # substantially faster
raw_or_epochs.load_data()
self._try_apply(raw_or_epochs)
