diff --git a/dockereve-master/docker-compose.yml b/dockereve-master/docker-compose.yml index 879194a..8e62552 100644 --- a/dockereve-master/docker-compose.yml +++ b/dockereve-master/docker-compose.yml @@ -10,7 +10,7 @@ nginx: links: - eve:eve - swagger_ui:swagger_ui - + swagger_ui: image: swaggerapi/swagger-ui:v3.0.12 environment: diff --git a/dockereve-master/eve-app/app.py b/dockereve-master/eve-app/app.py index 66e8c84..c425396 100644 --- a/dockereve-master/eve-app/app.py +++ b/dockereve-master/eve-app/app.py @@ -1,9 +1,11 @@ +# -*- coding: utf-8 -*- +# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- +# vi: set ft=python sts=4 ts=4 sw=4 et: + from eve import Eve from eve.auth import TokenAuth from eve_swagger import swagger from settings import my_settings as ms -import os -script_dir = os.path.dirname(os.path.abspath(__file__)) class TokenAuth(TokenAuth): def check_auth(self, token, allowed_roles, resource, method): @@ -22,4 +24,3 @@ def check_auth(self, token, allowed_roles, resource, method): if __name__ == '__main__': app.run(host='0.0.0.0') - diff --git a/dockereve-master/eve-app/requirements.txt b/dockereve-master/eve-app/requirements.txt index b0bca4f..f44a394 100644 --- a/dockereve-master/eve-app/requirements.txt +++ b/dockereve-master/eve-app/requirements.txt @@ -1,3 +1,3 @@ gunicorn==19.3.0 -eve==0.6.3 +eve==0.7.4 eve-swagger==0.0.7 diff --git a/test/T1w/validData/sub-51475_T1w.json b/test/T1w/validData/sub-51475_T1w.json new file mode 100644 index 0000000..ac37a71 --- /dev/null +++ b/test/T1w/validData/sub-51475_T1w.json @@ -0,0 +1,83 @@ +{ + "bids_meta": { + "modality": "T1w", + "subject_id": "51475" + }, + "cjv": 0.7481285789173965, + "cnr": 1.799069212614209, + "efc": 0.6902700762172372, + "fber": 595.3549194335938, + "fwhm_avg": 4.565343333333334, + "fwhm_x": 4.41164, + "fwhm_y": 4.58993, + "fwhm_z": 4.69446, + "icvs_csf": 0.18919747705234416, + "icvs_gm": 0.382565309920799, + "icvs_wm": 0.42823721302685686, + "inu_med": 0.7953134775161743, + "inu_range": 0.44703104794025417, + "provenance": { + "md5sum": "ab33bc1ca8c5a2708a936e5c3401cd9d", + "mriqc_pred": 0, + "settings": { + "testing": false + }, + "software": "mriqc", + "version": "0.9.4" + }, + "qi_1": 0.0, + "qi_2": 0.006308660513689068, + "rpve_csf": 25.03189049139931, + "rpve_gm": 12.273034012957833, + "rpve_wm": 13.015768127704394, + "size_x": 176, + "size_y": 256, + "size_z": 256, + "snr_csf": 3.3956995765079268, + "snr_gm": 13.680884861568199, + "snr_total": 12.67382623327664, + "snr_wm": 20.944894261753795, + "snrd_csf": 31.162335138430436, + "snrd_gm": 60.91207729999789, + "snrd_total": 54.38264336254042, + "snrd_wm": 71.07351764919294, + "spacing_x": 1.0, + "spacing_y": 1.0, + "spacing_z": 1.0, + "summary_bg_k": 2.82986187339563, + "summary_bg_mad": 9.21813678741455, + "summary_bg_mean": 32.454341888427734, + "summary_bg_median": 30.527267456054688, + "summary_bg_n": 1482703.0, + "summary_bg_p05": 19.065499114990235, + "summary_bg_p95": 52.49725570678711, + "summary_bg_stdv": 10.568535804748535, + "summary_csf_k": 29.474733122709587, + "summary_csf_mad": 87.17237854003906, + "summary_csf_mean": 460.5165100097656, + "summary_csf_median": 438.4715576171875, + "summary_csf_n": 39655.0, + "summary_csf_p05": 324.8987121582031, + "summary_csf_p95": 657.1927124023437, + "summary_csf_stdv": 129.12391662597656, + "summary_gm_k": 0.0867551356909293, + "summary_gm_mad": 58.64889144897461, + "summary_gm_mean": 863.1846313476562, + "summary_gm_median": 857.067138671875, + "summary_gm_n": 31052.0, + "summary_gm_p05": 768.9516632080079, + "summary_gm_p95": 978.3906677246093, + "summary_gm_stdv": 62.64604568481445, + "summary_wm_k": -0.07945658595236704, + "summary_wm_mad": 48.3164176940918, + "summary_wm_mean": 1005.5453491210938, + "summary_wm_median": 1000.0443115234375, + "summary_wm_n": 250836.0, + "summary_wm_p05": 936.5255737304688, + "summary_wm_p95": 1092.2911376953125, + "summary_wm_stdv": 47.74635314941406, + "tpm_overlap_csf": 0.22250480949878693, + "tpm_overlap_gm": 0.4691166281700134, + "tpm_overlap_wm": 0.5316591858863831, + "wm2max": 0.730122180731227 +}