Giter Site home page Giter Site logo

fealines's People

Contributors

amedeedaboville avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

g4-kn

fealines's Issues

Better error message when Protocol file doesn't load

For now a typo in a protocol file results in:

File "/Users/amedee/workspace/fealines/src/main.py", line 45, in
main()
File "/Users/amedee/workspace/fealines/src/main.py", line 40, in main
main.executeProtocol()
File "/Users/amedee/workspace/fealines/src/main.py", line 33, in executeProtocol
self.pcl = Protocol('./protocols/calibration.json')
File "/Users/amedee/workspace/fealines/src/Protocol/feaProtocol.py", line 12, in init
json_protocol = json.load(contents)
File "/anaconda/lib/python2.7/json/init.py", line 290, in load
**kw)
File "/anaconda/lib/python2.7/json/init.py", line 338, in loads
return _default_decoder.decode(s)
File "/anaconda/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/anaconda/lib/python2.7/json/decoder.py", line 382, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting property name: line 5 column 5 (char 80)

We should catch an error an say something nicer

Packaging/Build step

There is a setup.py file but it still requires users to get a few dependencies from other places.
Also I want to have a packaged app to send people done by this week

Play sound near end of Step

The muse app plays a sound near the end of each step so you know when to open your eyes. We should do that.

Step duration parsing badly thought out

Step duration parsing was done in thirty seconds with:
string.split(":") -> an array assumed to have three parts
I need that to handle other sizes. It should be:

45 -> seconds
1:30 -> minutes: seconds
1:1:30: -> hours:minutes:seconds

Need to think out steps without durations

Some steps just take however long they need to take, like the connection step which ends whenever the headband is sending good data.
Some steps might not want to show a timer for how long they take.

Clean up pyqtgraph.Qt imports

Most Qt dependent things are imported through a blanket

from pyqtgraph.Qt import QtGui

or similar.
We need Pyqt4 for a few things, so let's use it everywhere and change all the imports to more specific Pyqt4 ones.

Reload protocols

The app needs to be restarted after a protocol is run because of some Qt/python/ memory deallocating nonsense.

Default values for step sublcasses

Connection Steps, Calibration Steps should have default values for duration and stuff.
They may have their own properties. How do we let them have extra properties while still having their super class' (Step) property parsing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.