Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
thopri
PyNEMO
Commits
bb471932
Commit
bb471932
authored
5 years ago
by
James Harle
Browse files
Options
Download
Email Patches
Plain Diff
clean up print statements
parent
0092ba9f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
4 deletions
+0
-4
pynemo/nemo_bdy_setup.py
pynemo/nemo_bdy_setup.py
+0
-3
pynemo/profile.py
pynemo/profile.py
+0
-1
No files found.
pynemo/nemo_bdy_setup.py
View file @
bb471932
...
...
@@ -129,13 +129,11 @@ class Setup(object):
for
index
,
value
in
values
.
iteritems
():
count
=
-
1
for
line
in
data
:
# print line
count
=
count
+
1
#find the variable
line_without_comments
=
strip_comments
(
line
)
if
line_without_comments
==
''
:
continue
#print line_without_comments
data_name
,
data_index
,
data_value
=
self
.
_get_var_name_value
(
line_without_comments
)
if
data_name
==
name
:
...
...
@@ -248,7 +246,6 @@ def _replace_var_value(original_line, value, new_value):
value
=
str
(
value
).
lower
()
new_value
=
str
(
new_value
).
lower
()
elif
type
(
value
).
__name__
==
'str'
:
#an empty string need to replace with ''
print
value
,
new_value
if
value
==
''
:
value
=
'
\'\'
'
new_value
=
'
\'
'
+
new_value
+
'
\'
'
...
...
This diff is collapsed.
Click to expand it.
pynemo/profile.py
View file @
bb471932
...
...
@@ -132,7 +132,6 @@ def process_bdy(setup_filepath=0, mask_gui=False):
logger
.
info
(
'Gathering grid information'
)
nc
=
GetFile
(
settings
[
'src_zgr'
])
SourceCoord
.
zt
=
np
.
squeeze
(
nc
[
'gdept_0'
][:])
print
SourceCoord
.
zt
.
shape
nc
.
close
()
# Define z at t/u/v points
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment