Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

Commit

Permalink
Removing print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Ward Weistra committed Mar 11, 2016
1 parent 9a29af8 commit 46bb329
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 4 additions & 7 deletions arborist/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,15 @@
def add_slash_if_not_windows(url_path):
if sys.platform != 'win32':
url_path = '/' + url_path
print "not windows: "+url_path
else:
print "windows: "+url_path
return url_path


class FolderPathConverter(BaseConverter):
def __init__(self, url_map):
print "init!"
super(FolderPathConverter, self).__init__(url_map)
self.regex = '.*'

def to_python(self, value):
print "FolderPathConverter: "+value
return add_slash_if_not_windows(value)

def to_url(self, value):
Expand Down Expand Up @@ -219,7 +214,8 @@ def create_mapping_file(studiesfolder, study):
return json.jsonify(mappingfilename=mappingfilename)


@app.route('/folder/<folderpath:studiesfolder>/s/<study>/params/<datatype>/create/')
@app.route(('/folder/<folderpath:studiesfolder>/s/<study>/params/<datatype>/'
'create/'))
def create_params(studiesfolder, study, datatype):
feedback = get_feedback_dict()
paramsfile = os.path.join(studiesfolder, study, datatype+'.params')
Expand Down Expand Up @@ -370,7 +366,8 @@ def add_datafile(studiesfolder, study):
study=study))


@app.route('/folder/<folderpath:studiesfolder>/s/<study>/tree/save_columnsfile/',
@app.route(('/folder/<folderpath:studiesfolder>/s/<study>/tree/'
'save_columnsfile/'),
methods=['POST'])
def save_columnsfile(studiesfolder, study):
feedback = get_feedback_dict()
Expand Down
2 changes: 0 additions & 2 deletions arborist/functions/highdim.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def subject_sample_to_tree(filename, tree_array):
exists = False
for item in tree_array:
if item['id'] == id:
print item['id']
exists = True
break

Expand Down Expand Up @@ -74,7 +73,6 @@ def subject_sample_to_tree(filename, tree_array):
exists = False
for item in tree_array:
if item['id'] == id:
print item['id']
exists = True
break

Expand Down

0 comments on commit 46bb329

Please sign in to comment.