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

Merge branch 'master' into PyNEMO3

1 merge request!49update a few files
......@@ -40,7 +40,7 @@
!------------------------------------------------------------------------------
! 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_fn = 'NNA_R12' ! prefix 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):
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
......
......@@ -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))
......
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