mit-cml/edit-analysis-tools

Name: edit-analysis-tools

Owner: MIT App Inventor Project

Description: Edit Analysis Tools for App Inventor

Created: 2017-11-02 19:22:14.0

Updated: 2017-11-03 20:19:47.0

Pushed: 2018-03-01 18:51:17.0

Homepage: null

Size: 23

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Analysis Tools for Edit Operations Data

Interactive Environment

Recommended environment is IPython, version 6 or above.

ython -i main.py

To load from a previously saved state file (on disk as mystate.pickle), use below. The double-dash tells ipython to send subsequent args to the script.

ython -i main.py -- -f mystate

Also works equally well with `$ python3 -i`. You can use pyenv to set up default python to be python 3. Requires Python 3 (which is included in IPython >=6).

Usage
thon main.py -h
e: main.py [-h] [-u USERFILES] [-f FILE]

 analysis tools for edit stream data.

onal arguments:
, --help            show this help message and exit
 USERFILES, --userFiles USERFILES
                    path to userFiles input folder
 FILE, --file FILE  saved pickle file from which to restore data

The -u USERFILES argument will overwrite the hard-coded default directory from which to read in userFiles data. The -f FILE argument will ignore the input folder and instead load a previously-saved database from the given file.

Data Structures

Library (class):

Importing Data
Ignoring users during import

In the working directory of this script, place a file named ignore_users which lists users (as codenames), with one user per line. This is useful when you have users who are to be ignored from experimental data, which may include research staff or participants who did not complete informed consent. Any text after whitespace on a line will be ignored, so it can be used for comments.

Ignoring certain files

In dataImportJson.py there is a list of strings ignore_files. All file names in there will be ignored. The default is '.DS_Store' to prevent Mac OS metadata from being processed.

Development

Recommend using JetBrains PyCharm. Configuration files are included.

Code style is PEP-8.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.