@@ -552,8 +552,14 @@ def has_dataset(name):
552552@verbose
553553def _download_all_example_data (verbose = True ):
554554 """Download all datasets used in examples and tutorials."""
555- # This function is designed primarily to be used by CircleCI. It has
556- # verbose=True by default so we get nice status messages
555+ # This function is designed primarily to be used by CircleCI, to:
556+ #
557+ # 1. Streamline data downloading
558+ # 2. Make CircleCI fail early (rather than later) if some necessary data
559+ # cannot be retrieved.
560+ # 3. Avoid download statuses and timing biases in rendered examples.
561+ #
562+ # verbose=True by default so we get nice status messages.
557563 # Consider adding datasets from here to CircleCI for PR-auto-build
558564 from . import (sample , testing , misc , spm_face , somato , brainstorm ,
559565 eegbci , multimodal , opm , hf_sef , mtrf , fieldtrip_cmc ,
@@ -580,6 +586,8 @@ def _download_all_example_data(verbose=True):
580586 finally :
581587 sys .argv .pop (- 1 )
582588 eegbci .load_data (1 , [6 , 10 , 14 ], update_path = True )
589+ for subj in range (4 ):
590+ eegbci .load_data (subj + 1 , runs = [3 ], update_path = True )
583591 sleep_physionet .age .fetch_data (subjects = [0 , 1 ], recording = [1 ],
584592 update_path = True )
585593 # If the user has SUBJECTS_DIR, respect it, if not, set it to the EEG one
0 commit comments