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
96b617bb
Unverified
Commit
96b617bb
authored
5 years ago
by
jdha
Committed by
GitHub
5 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #49 from jdha/master
update a few files
parents
881fc534
6f79c74f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
.travis.yml
.travis.yml
+2
-0
inputs/namelist_local.bdy
inputs/namelist_local.bdy
+1
-1
pynemo/profile.py
pynemo/profile.py
+0
-1
pynemo/pynemo_exe.py
pynemo/pynemo_exe.py
+2
-1
No files found.
.travis.yml
0 → 100644
View file @
96b617bb
language
:
python
python
:
3.7
This diff is collapsed.
Click to expand it.
inputs/namelist_local.bdy
View file @
96b617bb
...
...
@@ -40,7 +40,7 @@
!------------------------------------------------------------------------------
! I/O
!------------------------------------------------------------------------------
sn_src_dir = '/Users/jdha/Projects/GitHub/PyNEMO
3
/inputs/src_data_local.ncml' ! src_files/'
sn_src_dir = '/Users/jdha/Projects/GitHub/PyNEMO/inputs/src_data_local.ncml' ! src_files/'
sn_dst_dir = './outputs'
sn_fn = 'NNA_R12' ! prefix for output files
nn_fv = -1e20 ! set fill value for output files
...
...
This diff is collapsed.
Click to expand it.
pynemo/profile.py
View file @
96b617bb
...
...
@@ -149,7 +149,6 @@ def process_bdy(setup_filepath=0, mask_gui=False):
DstCoord
.
depths
[
grd
][
'bdy_H'
]
=
np
.
nanmax
(
z
.
zpoints
[
'w'
+
grd
],
axis
=
0
)
DstCoord
.
depths
[
grd
][
'bdy_dz'
]
=
np
.
diff
(
z
.
zpoints
[
'w'
+
grd
],
axis
=
0
)
DstCoord
.
depths
[
grd
][
'bdy_z'
]
=
z
.
zpoints
[
grd
]
logger
.
info
(
'Depths defined'
)
# Gather vorizontal grid information
...
...
This diff is collapsed.
Click to expand it.
pynemo/pynemo_exe.py
View file @
96b617bb
...
...
@@ -7,6 +7,7 @@ Entry for the project
import
sys
,
getopt
from
.
import
profile
import
logging
import
cProfile
# Logging set to info
logging
.
basicConfig
(
level
=
logging
.
INFO
)
...
...
@@ -41,7 +42,7 @@ def main():
#Logger
#logger = logging.getLogger(__name__)
t0
=
time
.
time
()
profile
.
process_bdy
(
setup_file
,
mask_gui
)
cProfile
.
runctx
(
"f(x, y)"
,{
'f'
:
profile
.
process_bdy
,
'x'
:
setup_file
,
'y'
:
mask_gui
},
{},
'pynemo_stats'
)
t1
=
time
.
time
()
print
(
"Execution Time: %s"
%
(
t1
-
t0
))
...
...
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