Commit fc630ffe authored by Mathieu Giraud's avatar Mathieu Giraud

*.py: removing unused/reimported imports

Thanks to landscape.io
parent c73331bf
import collections
import json
import sys
import time
if len(sys.argv) < 3:
......
......@@ -7,7 +7,6 @@ import os
import urllib
from collections import defaultdict
import re
import urllib
IMGT_LICENSE = '''
# To use the IMGT germline databases (IMGT/GENE-DB), you have to agree to IMGT license:
......
from SimpleXMLRPCServer import SimpleXMLRPCServer, SimpleXMLRPCRequestHandler
from SimpleXMLRPCServer import SimpleXMLRPCServer
from subprocess import *
import sys
......@@ -6,7 +6,7 @@ sys.path.insert(0, './web2py/applications/vidjil/modules')
import defs
def fuse(cmd, output_dir, filename):
import time, datetime, sys, os.path, random
import time, datetime, os.path
from subprocess import Popen, PIPE, STDOUT, os
fuse_log_file = open(output_dir+'/'+filename+'.fuse.log', 'w')
......
import sys
import glob
import os
......
......@@ -2,7 +2,6 @@
import gluon.contrib.simplejson, re
import os.path, subprocess
import vidjil_utils
from collections import defaultdict
MAX_LOG_LINES = 500
......
......@@ -151,7 +151,6 @@ def run_request():
# need patient, config
# need patient admin or read permission
def get_data():
import time
from subprocess import Popen, PIPE, STDOUT
if not auth.user :
res = {"redirect" : URL('default', 'user', args='login', scheme=True, host=True,
......
......@@ -562,7 +562,7 @@ def confirm():
#
def delete():
if (auth.can_modify_patient(request.vars["id"]) ):
import shutil, os.path
import os.path
#delete data file
query = db( (db.sequence_file.patient_id==request.vars["id"])).select()
for row in query :
......
......@@ -7,7 +7,7 @@ import re
TASK_TIMEOUT = 60 * 60
def schedule_run(id_sequence, id_config):
import time, datetime, sys, os.path
import time, datetime, os.path
from subprocess import Popen, PIPE, STDOUT, os
id_patient = db.sequence_file[id_sequence].patient_id
......@@ -63,7 +63,7 @@ def schedule_run(id_sequence, id_config):
def run_vidjil(id_file, id_config, id_data, id_fuse, clean_before=False, clean_after=False):
import time, datetime, sys, os.path
import time, datetime, os.path
from subprocess import Popen, PIPE, STDOUT, os
## les chemins d'acces a vidjil / aux fichiers de sequences
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment