Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agenda 9/3/2021 #304

Closed
F-said opened this issue Aug 31, 2021 · 6 comments
Closed

Agenda 9/3/2021 #304

F-said opened this issue Aug 31, 2021 · 6 comments

Comments

@F-said
Copy link
Contributor

F-said commented Aug 31, 2021

Updates

Blocks/Challenges

  • Discussion: when should we allow the program to exit and when should we allow the pipeline to progress? Maybe if bad path is given we want the pipeline to exit and not run-along w/o user knowing that something is wrong.
    • in the context of pipeline features:
      • Parameter Error: Skip to next subj
      • Bad data (somehow bad data got past mne_bids): hard stop
    • in the context of load functions
      • Data is missing in path: hard stop
      • Path is missing: hard stop
  • how light-weight should user_params be? Should we cut down on any part?

ceb20160325047406f1982b165ce832e

Next Actions

@F-said
Copy link
Contributor Author

F-said commented Sep 2, 2021

Longest agenda to date probably

@yanbin-niu
Copy link
Member

Discussion: when should we allow the program to exit and when should we allow the pipeline to progress? Maybe if bad path is given we want the pipeline to exit and not run-along w/o user knowing that something is wrong.
in the context of pipeline features:
Parameter Error: Continue pipeline
Bad data (somehow bad data got past mne_bids): hard stop?
in the context of load functions
Data is missing in path: continue w/no preprocessing since no data
Path is missing: hard stop?

Beyond the path checking(should be first prioritized), something off the top of my head, but not sure whether it is possible/feasible:

Can we do the checking of user_param and data at the very beginning of each loop (before calling features from preprocessing)? if any is invalid, we jump to (continue) the next loop and write error (which participant, which task, and which run) into output. (Each feature still needs its own input checking).

  • Raw data - an instance of BaseRaw

This class is public to allow for stable type-checking in user code (i.e., isinstance(my_raw_object, BaseRaw)) but should not be used as a constructor for Raw objects

https://mne.tools/stable/generated/mne.io.BaseRaw.html?highlight=baseraw#mne.io.BaseRaw

Or we can use _validate_type (this can be used to check many other MNE types, such as "path-like")
https://github.com/mne-tools/mne-python/blob/maint/0.23/mne/utils/check.py#L383

  • For user_param, should decide on items that must be provided. If any is missing, then we think the user_param is invalid.

@yanbin-niu
Copy link
Member

  • Maybe discuss a way to move PR reviews forward. Our features all cluster in preprocessing.py, and if a PR is pending, all the following PRs might be needed to wait due to the potential merge conflict.

@F-said
Copy link
Contributor Author

F-said commented Sep 3, 2021

Load data

  • Data is missing in path: hard stop
  • Path is missing: hard stop

Filter errors

  • impossible params (skip to next participant)

Segment errors

  • something that prevents epochs from being created (skip to next participant)

Final_reject errors

  • y-value error (skip to next participant)

ICA errors

  • bad montage (skip to next participant)

@F-said
Copy link
Contributor Author

F-said commented Sep 3, 2021

Make issue

  • filter on data w/breaks

@F-said
Copy link
Contributor Author

F-said commented Sep 20, 2021

  • Resolved additional params,
  • created additional tests,
  • created exception handling feature

Closing

@F-said F-said closed this as completed Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants