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

Field creation UI #114

Merged
merged 4 commits into from
Jan 3, 2021
Merged

Field creation UI #114

merged 4 commits into from
Jan 3, 2021

Conversation

tab-cmd
Copy link
Contributor

@tab-cmd tab-cmd commented Dec 17, 2020

Overview

Added a GUI for creation of new BciPy experiment fields. Small updates for ExperimentRegistry to allow creation of multiple experiments per session.

Ticket

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

Contributions

linting

Updated

  • gui/README: with new GUI information
  • README: with new GUI information
  • test_generator: assert raises a Runtime error, which encapsulates the StopIteration. Not 100% on this one...
  • ExperimentRegistry: to use WARN instead of INFO on check_input. To call new FieldRegistry instead of throwing not implemented alert.
  • gui_main: to store background_color and pass instead of logging for dropdown action.

Added

  • FieldRegistry: GUI for creating new Fields. It should not create duplicates and require all field be input before creation.

Test

  • Run BCInterface.py, create a new experiment, create a new field, close the window. Ensure new field is written and viewable in the experiment creation window. Try creating invalid fields (missing values, names already registered) and verify alerts are thrown and no data is written. Run make test-all

Documentation

  • Are documentation updates required? In-line, README, or documentation? READMEs were updated.

@tab-cmd tab-cmd requested review from lawhead and AlisterD December 17, 2020 18:14
@@ -96,7 +95,8 @@ def test_file_generator_end(self):
for _ in range(row_count):
next(gen)

with pytest.raises(StopIteration):
with self.assertRaises(RuntimeError):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Calling next on a depleted Generator should raise a StopError exception, which is what we're explicitly testing in this situation. A RuntimeError is too general and could be the result of a different unexpected issue.

@tab-cmd tab-cmd merged commit d402c0e into 1.4.3 Jan 3, 2021
@tab-cmd tab-cmd deleted the field-creation-ui branch January 12, 2021 16:53
@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