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

Add experiment-field ui #113

Merged
merged 2 commits into from
Dec 15, 2020
Merged

Add experiment-field ui #113

merged 2 commits into from
Dec 15, 2020

Conversation

tab-cmd
Copy link
Contributor

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

Overview

Added an experiment field collection widget. Various refactors and cleanup work included. If not mentioned explicity in contributions, it was a linting update

Ticket

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

Contributions

Added

  • Makefile: convenient file to run the various install, testing, and linting commands
  • ExperimentField: gui to collect registered field data by experiment name
  • gui/experiments/demo/demo_experiment_field_collection.py : to demo the experiment field ui. This may not be needed...
  • helpers/exceptions: Field and Experiment specific exceptions
  • validate: validate experiments and field write

Updated

  • README.md: with makefile instructions
  • bci_main: to validate experiments and collect experiment field data. Add better experiment options to help output.
  • gui_main: to use help tip text for the helptip
  • load: added the load_experiment_fields method
  • save: add save experiment field
  • session: added a collect_experiment_field_data method to call the ExperimentField GUI
  • requirements: add back openpyxl version lock
  • parameters: to include experiment filename for export
  • pull_request_template: fix spelling / grammar errors

Test

  • make test-all
  • run a session via bci_main defaults
  • run experiment field gui via the demo
  • run experiment field gui via argparse in ExperimentField.py

Documentaion

  • Are documentation updates required? In-line, README, or documentation? Verify the updates you did here. Updated README and docstrings

@@ -142,7 142,7 @@ def init_help(self, font_size: int, color: str) -> QWidget:
"""Initialize the help text widget."""
if self.help_tip and self.label != self.help_tip:
return static_text_control(None,
label=self.label,
label=self.help_tip,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for fixing this. I noticed this locally and was going to add it to my next PR.

@@ -0,0 1,43 @@

Copy link
Collaborator

Choose a reason for hiding this comment

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

These custom exceptions are nice.

@tab-cmd tab-cmd merged commit 33bd476 into 1.4.3 Dec 15, 2020
@tab-cmd tab-cmd deleted the experiment-field-ui branch December 15, 2020 19:12
@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