Commit bb471932 authored by James Harle's avatar James Harle
Browse files

clean up print statements

parent 0092ba9f
...@@ -129,13 +129,11 @@ class Setup(object): ...@@ -129,13 +129,11 @@ class Setup(object):
for index, value in values.iteritems(): for index, value in values.iteritems():
count = -1 count = -1
for line in data: for line in data:
# print line
count = count + 1 count = count + 1
#find the variable #find the variable
line_without_comments = strip_comments(line) line_without_comments = strip_comments(line)
if line_without_comments == '': if line_without_comments == '':
continue continue
#print line_without_comments
data_name, data_index, data_value = self._get_var_name_value(line_without_comments) data_name, data_index, data_value = self._get_var_name_value(line_without_comments)
if data_name == name: if data_name == name:
...@@ -248,7 +246,6 @@ def _replace_var_value(original_line, value, new_value): ...@@ -248,7 +246,6 @@ def _replace_var_value(original_line, value, new_value):
value = str(value).lower() value = str(value).lower()
new_value = str(new_value).lower() new_value = str(new_value).lower()
elif type(value).__name__ == 'str': #an empty string need to replace with '' elif type(value).__name__ == 'str': #an empty string need to replace with ''
print value, new_value
if value == '': if value == '':
value = '\'\'' value = '\'\''
new_value = '\''+new_value+'\'' new_value = '\''+new_value+'\''
......
...@@ -132,7 +132,6 @@ def process_bdy(setup_filepath=0, mask_gui=False): ...@@ -132,7 +132,6 @@ def process_bdy(setup_filepath=0, mask_gui=False):
logger.info('Gathering grid information') logger.info('Gathering grid information')
nc = GetFile(settings['src_zgr']) nc = GetFile(settings['src_zgr'])
SourceCoord.zt = np.squeeze(nc['gdept_0'][:]) SourceCoord.zt = np.squeeze(nc['gdept_0'][:])
print SourceCoord.zt.shape
nc.close() nc.close()
# Define z at t/u/v points # Define z at t/u/v points
......
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