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

WIP: Prototype for filing out lab config files #1

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

jakirkham
Copy link
Member

@jakirkham jakirkham commented Jun 8, 2016

Basically, this let's one fill out a config file with PyQt4. It still needs a conda package to make install. That ends up being quite easy to do I just might want to rename things here. Also, we might want a clickable app as opposed to a command line call. Again this should be pretty easy to do. This is kind of what it looks like. Right now it is very free form so anything can go in these fields. Basically I just use the fields from the Excel sheet. We can add default value fields as needed.

screen shot 2016-06-08 at 12 39 21

One can fill this out. Tabbing is possible between fields. Here is a sample of it filled out.

screen shot 2016-06-08 at 12 42 44

Once done, one merely selects "Ok" and a File Dialog comes up. Currently this saves data as JSON (pretty easy to read in all languages) though other formats can be used.

screen shot 2016-06-08 at 12 43 48

If you try to overwrite a file, it warns you and checks to see if that is ok.

screen shot 2016-06-08 at 12 44 43

The final output is formatted with a computer program or human reader in mind.

{
 "Rig_Name": "Falcon", 
 "User": "Luke Skywalker", 
 "Proj_Code": "Force", 
 "Rec_Sys": "BlackRock_Cerebus", 
 "Behav_Code_Ver": "1.0.0", 
 "NS_Path": "/home/lskywalker/data/ns", 
 "Behav_Path": "/home/lskywalker/data/bhv", 
 "Jpos_X_Ch": "0", 
 "Jpos_Y_Ch": "1", 
 "Mpos_X_Ch": "2", 
 "Mpos_Y_Ch": "3", 
 "Lick_Ch": "4", 
 "Rew_Ch": "5", 
 "Trial_Start_Ch": "6", 
 "Trial_Event_Ch": "7"
}

This was pretty fast to whip up and certainly can be played with further. Feedback welcome. 😄

Also, feel free to cc others. Basically just picked the most interested people so far. 😉

cc @dudmanj @yttrie @luketc

@jakirkham jakirkham force-pushed the add_config_gui branch 2 times, most recently from 9234236 to d245567 Compare June 9, 2016 03:37
@jakirkham
Copy link
Member Author

Did a bit more clean up. Now has some mechanisms for packaging and installation. Some other minor tweaks are still worthy of consideration.

@jakirkham jakirkham changed the title WIP: Prototype for filing out lab config files Prototype for filing out lab config files Jul 20, 2016
@jakirkham jakirkham changed the title Prototype for filing out lab config files WIP: Prototype for filing out lab config files Jul 20, 2016
@jakirkham jakirkham mentioned this pull request Jul 28, 2016
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.

1 participant