Unverified Commit 96b617bb authored by jdha's avatar jdha Committed by GitHub
Browse files

Merge pull request #49 from jdha/master

update a few files
parents 881fc534 6f79c74f
language: python
python: 3.7
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
!------------------------------------------------------------------------------ !------------------------------------------------------------------------------
! I/O ! I/O
!------------------------------------------------------------------------------ !------------------------------------------------------------------------------
sn_src_dir = '/Users/jdha/Projects/GitHub/PyNEMO3/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_dst_dir = './outputs'
sn_fn = 'NNA_R12' ! prefix for output files sn_fn = 'NNA_R12' ! prefix for output files
nn_fv = -1e20 ! set fill value for output files nn_fv = -1e20 ! set fill value for output files
......
...@@ -149,7 +149,6 @@ def process_bdy(setup_filepath=0, mask_gui=False): ...@@ -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_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_dz'] = np.diff(z.zpoints['w'+grd], axis=0)
DstCoord.depths[grd]['bdy_z'] = z.zpoints[grd] DstCoord.depths[grd]['bdy_z'] = z.zpoints[grd]
logger.info('Depths defined') logger.info('Depths defined')
# Gather vorizontal grid information # Gather vorizontal grid information
......
...@@ -7,6 +7,7 @@ Entry for the project ...@@ -7,6 +7,7 @@ Entry for the project
import sys, getopt import sys, getopt
from . import profile from . import profile
import logging import logging
import cProfile
# Logging set to info # Logging set to info
logging.basicConfig(level=logging.INFO) logging.basicConfig(level=logging.INFO)
...@@ -41,7 +42,7 @@ def main(): ...@@ -41,7 +42,7 @@ def main():
#Logger #Logger
#logger = logging.getLogger(__name__) #logger = logging.getLogger(__name__)
t0 = time.time() 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() t1 = time.time()
print("Execution Time: %s" % (t1-t0)) print("Execution Time: %s" % (t1-t0))
......
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