WIP: Prototype for filing out lab config files#1
Open
jakirkham wants to merge 10 commits intoDudLab:masterfrom
Open
WIP: Prototype for filing out lab config files#1jakirkham wants to merge 10 commits intoDudLab:masterfrom
jakirkham wants to merge 10 commits intoDudLab:masterfrom
Conversation
9234236 to
d245567
Compare
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. |
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
One can fill this out. Tabbing is possible between fields. Here is a sample of it filled out.
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.
If you try to overwrite a file, it warns you and checks to see if that is ok.
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