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

System directory to support experiments #100

Merged
merged 1 commit into from
Oct 19, 2020
Merged

System directory to support experiments #100

merged 1 commit into from
Oct 19, 2020

Conversation

tab-cmd
Copy link
Contributor

@tab-cmd tab-cmd commented Oct 19, 2020

Overview

Added a system directory that contains an experiment and field registry. Updated save method to include an experiment.

Ticket

https://www.pivotaltracker.com/story/show/175193520

Contributions

  • Added .bcipy
  • Added .bcipy/experiment/
  • Added .bcipy/field/
  • Added .bcipy/experiment/experiments.json
  • Added .bcipy/field/fields.json
  • Updated helpers/save/init_save_data_structure to include the experiment in the save structure. Defined a DEFAULT_EXPERIMENT_ID.
  • Removed copying of the helpers folder (not useful to clinical team)
  • Updated bci_main to include the setting of the experiment id.
  • Updated helper save tests

Test

  • Unit tests

Documentaion

  • No

Add experiments and fields 
Add default experiment to the save structure, update tests


Linting and documentation
@tab-cmd tab-cmd requested a review from lawhead October 19, 2020 19:43
if (os.path.isfile(full_file_name)) and '.py' in file_name:
# Copy over!
copy2(full_file_name, helper_folder_name)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I was looking into BIDS I meant to ask if these helpers are still needed. I'm glad we're able to clean up the data.

@tab-cmd tab-cmd merged commit 1dfc66a into 1.4.3 Oct 19, 2020
parameter_location,
mode=mode,
experiment_type=exp_type,
experiment=experiment)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bci_main is passing an extra parameter to init_save_data_structure which causes an error (experiment). Sorry I didn't catch this during the review.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or actually, it looks like maybe this needs to be experiment_id, rather than experiment?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah - it should be experiment_id. I'll re-open a PR

@tab-cmd tab-cmd mentioned this pull request Jan 20, 2021
4 tasks
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

Successfully merging this pull request may close these issues.

2 participants