Git Product home page Git Product logo

minj's People

Contributors

guilhermelowa avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

marcusaldrey

minj's Issues

Add comments when logging metrics

Currently we are prompted to enter a number for a given metric, e.g.: "attention: <input_number>". I've noticed that while logging a number, I want to attach an explanation to it. Ex:

"attention: 5 - today I was so focused while playing bass that nothing else existed".
"emotions: 5 - felt good today because playing was so great"

My suggestion is to do a regex to get the number and the comment. The comments could be written in a column called "comments" on the metrics.csv. Preferably attach a tag to the specific metric you were logging. So in the above example, the metrics.csv file would look like:

attention,emotions,comments
5,5,[attention] today I was so focused while playing bass that nothing else existed;[emotions] felt good today because playing was so great"

I also suggest that comments should always be the last item in the header. Hence, when adding a new metric it should always come before comments.

To solve this Issue, basically you have to change the metrics_log.py file. Add the regex to get the comment and save it to the metrics.csv file and also modify the add / remove metrics functions in order to keep the comments column always the last one

Add test to all functionalities

Add test to the functionalities we already have. They read/write to a file. We currently have the following functionalities:

  • Add metric
  • Remove metric
  • Log sleep times

Ask about sleep time on system startup

Create a script that adds a shell asking for sleep and wake up times on system start up. Or else, find a way to do this and add to README, like the crontab instructions.

Checks on modifying metrics

Currently when we add / remove a metric, we update the file with the active metrics and update the header of the metrics.csv file (where the recordings are stored). I can see two problems with it: metrics with same name and adding a previously removed metric.

  • When adding a metric with the same name as an active one, we have to make sure to include only one.
  • When adding a metric previously removed, we shouldn't change the header on the metrics.csv file. Just keep writing to the respective column

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.