Skip to content

Commit 5f23ac0

Browse files
committed
cleanup
Former-commit-id: 6430a05
1 parent d4efdfc commit 5f23ac0

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

tethne/readers/wos.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@
7979
import re
8080
import uuid
8181

82-
# MACRO for printing the 'print' statement values.
83-
# 0 prints nothing in the console.
84-
# 1 prints all print statements in the console.
85-
DEBUG = 0
86-
8782
def _create_ayjid(aulast=None, auinit=None, date=None, jtitle=None, **kwargs):
8883
"""
8984
Convert aulast, auinit, and jtitle into the fuzzy identifier ayjid
@@ -380,8 +375,6 @@ def _parse_cr(ref):
380375
if match:
381376
# remove the [] and make it a proper one.
382377
name = name[match.start()+1:match.end()-1]
383-
if DEBUG :
384-
print 'stripped name: ', name
385378

386379
name_tokens = name.split(' ')
387380
if len(name_tokens) < 2:
@@ -391,9 +384,6 @@ def _parse_cr(ref):
391384
paper['aulast'] = [name_tokens[0]]
392385
paper['auinit'] = [''.join(name_tokens[1:]).replace('.','')]
393386

394-
if DEBUG:
395-
print "Final Meta Dicts", paper['aulast'], paper['auinit']
396-
397387
# Temp Solution for #62809724
398388
if paper['auinit'] == 'None' or paper['aulast'] == 'None' :
399389
raise ("The Cited References field is not in the expeceted format")
@@ -729,9 +719,6 @@ def _validate(wos_data):
729719
ValueError - according to the severity of the issue,
730720
whether the wrong format will affect the further processing.
731721
"""
732-
if DEBUG:
733-
print wos_data
734-
735722

736723
# Create a translator dict whose keys are the fields which needs to be
737724
# validated from the input.
@@ -743,8 +730,6 @@ def _validate(wos_data):
743730
for wos_dict in wos_data:
744731
#direct translations
745732
for key in translator.iterkeys():
746-
if DEBUG :
747-
print wos_dict[key]
748733
# Validate for 'CR' field
749734
if wos_dict['CR'] is not None:
750735
for cr in wos_dict['CR']:

0 commit comments

Comments
 (0)