Skip to content

Commit 048efd1

Browse files
committed
revert deleted files
1 parent cc00977 commit 048efd1

30 files changed

+1943
-7
lines changed

dmriprep/__init__.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
"""Top-level package for dmriprep."""
44

5-
__author__ = """Michael Joseph"""
6-
__email__ = "[email protected]"
5+
__author__ = """Anisha Keshavan"""
6+
__email__ = "[email protected]"
77
__version__ = "0.1.0"
88

99
import errno
@@ -22,7 +22,7 @@
2222

2323
# get the log level from environment variable
2424
if "DMIRPREP_LOGLEVEL" in os.environ:
25-
loglevel = os.environ["dmriprep_LOGLEVEL"]
25+
loglevel = os.environ["DMRIPREP_LOGLEVEL"]
2626
module_logger.setLevel(getattr(logging, loglevel.upper()))
2727
else:
2828
module_logger.setLevel(logging.WARNING)
@@ -45,15 +45,14 @@
4545
handler.setLevel(logging.DEBUG)
4646

4747
# create a logging format
48-
formatter = logging.Formatter(
49-
"%(asctime)s - %(name)s - %(levelname)s - %(message)s"
50-
)
48+
formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
5149
handler.setFormatter(formatter)
5250

5351
# add the handlers to the logger
5452
module_logger.addHandler(handler)
5553
module_logger.info("Started new dmriprep session")
5654

5755
from ._version import get_versions
58-
__version__ = get_versions()['version']
56+
57+
__version__ = get_versions()["version"]
5958
del get_versions

dmriprepViewer/.babelrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"presets": [
3+
["env", {
4+
"modules": false,
5+
"targets": {
6+
"browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
7+
}
8+
}],
9+
"stage-2"
10+
],
11+
"plugins": ["transform-vue-jsx", "transform-runtime"],
12+
"env": {
13+
"test": {
14+
"presets": ["env", "stage-2"],
15+
"plugins": ["transform-vue-jsx", "transform-es2015-modules-commonjs", "dynamic-import-node"]
16+
}
17+
}
18+
}

dmriprepViewer/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# dmriprep-viewer
2+
3+
> Viewer for dmriprep reports
4+
5+
## Build Setup
6+
7+
``` bash
8+
# install dependencies
9+
npm install
10+
11+
# serve with hot reload at localhost:8080
12+
npm run dev
13+
14+
# build for production with minification
15+
npm run build
16+
17+
# build for production and view the bundle analyzer report
18+
npm run build --report
19+
20+
# run unit tests
21+
npm run unit
22+
23+
# run e2e tests
24+
npm run e2e
25+
26+
# run all tests
27+
npm test
28+
```
29+
30+
For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).

dmriprepViewer/config/dev.env.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict'
2+
const merge = require('webpack-merge')
3+
const prodEnv = require('./prod.env')
4+
5+
module.exports = merge(prodEnv, {
6+
NODE_ENV: '"development"'
7+
})

dmriprepViewer/config/index.js

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
'use strict'
2+
// Template version: 1.3.1
3+
// see http://vuejs-templates.github.io/webpack for documentation.
4+
5+
const path = require('path')
6+
7+
module.exports = {
8+
dev: {
9+
10+
// Paths
11+
assetsSubDirectory: 'static',
12+
assetsPublicPath: '/',
13+
proxyTable: {},
14+
15+
// Various Dev Server settings
16+
host: 'localhost', // can be overwritten by process.env.HOST
17+
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
18+
autoOpenBrowser: false,
19+
errorOverlay: true,
20+
notifyOnErrors: true,
21+
poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
22+
23+
// Use Eslint Loader?
24+
// If true, your code will be linted during bundling and
25+
// linting errors and warnings will be shown in the console.
26+
useEslint: true,
27+
// If true, eslint errors and warnings will also be shown in the error overlay
28+
// in the browser.
29+
showEslintErrorsInOverlay: false,
30+
31+
/**
32+
* Source Maps
33+
*/
34+
35+
// https://webpack.js.org/configuration/devtool/#development
36+
devtool: 'cheap-module-eval-source-map',
37+
38+
// If you have problems debugging vue-files in devtools,
39+
// set this to false - it *may* help
40+
// https://vue-loader.vuejs.org/en/options.html#cachebusting
41+
cacheBusting: true,
42+
43+
cssSourceMap: true
44+
},
45+
46+
build: {
47+
// Template for index.html
48+
index: path.resolve(__dirname, '../dist/index.html'),
49+
50+
// Paths
51+
assetsRoot: path.resolve(__dirname, '../dist'),
52+
assetsSubDirectory: 'static',
53+
assetsPublicPath: '/dmriprep/',
54+
55+
/**
56+
* Source Maps
57+
*/
58+
59+
productionSourceMap: true,
60+
// https://webpack.js.org/configuration/devtool/#production
61+
devtool: '#source-map',
62+
63+
// Gzip off by default as many popular static hosts such as
64+
// Surge or Netlify already gzip all static assets for you.
65+
// Before setting to `true`, make sure to:
66+
// npm install --save-dev compression-webpack-plugin
67+
productionGzip: false,
68+
productionGzipExtensions: ['js', 'css'],
69+
70+
// Run the build command with an extra argument to
71+
// View the bundle analyzer report after build finishes:
72+
// `npm run build --report`
73+
// Set to `true` or `false` to always turn it on or off
74+
bundleAnalyzerReport: process.env.npm_config_report
75+
}
76+
}

dmriprepViewer/config/prod.env.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
'use strict'
2+
module.exports = {
3+
NODE_ENV: '"production"'
4+
}

dmriprepViewer/config/test.env.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict'
2+
const merge = require('webpack-merge')
3+
const devEnv = require('./dev.env')
4+
5+
module.exports = merge(devEnv, {
6+
NODE_ENV: '"testing"'
7+
})

dmriprepViewer/deploy.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/bin/bash
2+
3+
set -e # exit with nonzero exit code if anything fails
4+
5+
if [[ $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" ]]; then
6+
7+
echo "Starting to update gh-pages\n"
8+
9+
#copy data we're interested in to other place
10+
cp -R dist $HOME/dist
11+
12+
#go to home and setup git
13+
cd $HOME
14+
git config --global user.email "[email protected]"
15+
git config --global user.name "Travis"
16+
17+
#using token clone gh-pages branch
18+
git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/${GH_USER}/${GH_REPO}.git gh-pages > /dev/null
19+
20+
#go into directory and copy data we're interested in to that directory
21+
cd gh-pages
22+
cp -Rf $HOME/dist/* .
23+
24+
echo "Allow files with underscore https://help.github.com/articles/files-that-start-with-an-underscore-are-missing/" > .nojekyll
25+
echo "[View live](https://${GH_USER}.github.io/${GH_REPO}/)" > README.md
26+
27+
#add, commit and push files
28+
git add -f .
29+
git commit -m "Travis build $TRAVIS_BUILD_NUMBER"
30+
git push -fq origin gh-pages > /dev/null
31+
32+
echo "Done updating gh-pages\n"
33+
34+
else
35+
echo "Skipped updating gh-pages, because build is not triggered from the master branch."
36+
fi;

dmriprepViewer/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
6+
<title>dmriprep-viewer</title>
7+
</head>
8+
<body>
9+
<div id="app"></div>
10+
<!-- built files will be auto injected -->
11+
</body>
12+
</html>

dmriprepViewer/src/App.vue

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<template>
2+
<div id="app">
3+
<router-view/>
4+
</div>
5+
</template>
6+
7+
<script>
8+
import Vue from 'vue';
9+
import BootstrapVue from 'bootstrap-vue';
10+
// eslint-disable-next-line
11+
import 'bootstrap/dist/css/bootstrap.css';
12+
import 'bootstrap-vue/dist/bootstrap-vue.css';
13+
14+
Vue.use(BootstrapVue);
15+
16+
export default {
17+
name: 'App',
18+
};
19+
</script>
20+
21+
<style>
22+
#app {
23+
font-family: 'Avenir', Helvetica, Arial, sans-serif;
24+
-webkit-font-smoothing: antialiased;
25+
-moz-osx-font-smoothing: grayscale;
26+
text-align: center;
27+
color: #2c3e50;
28+
margin-top: 60px;
29+
}
30+
</style>

0 commit comments

Comments
 (0)