Skip to content

Commit

Permalink
Fix #16
Browse files Browse the repository at this point in the history
Minor updates to the previous code. 
Mainly removal of unused variables and lines of code. 

Code works with Nemo v3 and v4.
  • Loading branch information
lmicallef authored Mar 3, 2021
1 parent c1121f8 commit 81ef680
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/scriptMK.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ def get_vgridtype(self):


def get_hgridpt(self):
'''This function will return the value corresponding to the hortizonatal grid type from namelist_cfg file. Returns unknown if value is not available'''
'''This function will return the value corresponding to the horizontal grid type from namelist_cfg file. Returns unknown if value is not available'''

stringToMatch = 'namcfg'
defaultx = ""
Expand Down Expand Up @@ -1280,7 +1280,7 @@ def check_confdir(self):
errmsg("It seems, we are not in a configuration sub-folder of NEMOGCM/CONFIG. I'm lost. " + c.BOLD + "Please run this script within a configuration folder!" + c.NORMAL)

def check_prereq(self):
'''This function will check some prerequisits, like git vs svn, curl & wget,... '''
'''This function will check some prerequisites, like git vs svn, curl & wget,... '''
#MMS:{
#'''This function will check that EXP00 or EXPREF directory is present in the current file structure '''
#if(EXPref != "EXP00") and (EXPref != "EXPREF"):
Expand Down Expand Up @@ -1632,7 +1632,7 @@ def template(self):
##-- end of class ReadmeScript ---#

def center(text):
'''Centers the text to the midddle of the screen'''
'''Centers the text to the middle of the screen'''
command = ['tput', 'cols']
width = int(subprocess.check_output(command))
c = text.center(width)
Expand Down Expand Up @@ -1674,7 +1674,7 @@ def trim(text):


def prep_note():
'''The purpose of this function is to display a list of prerequistes to successfully render a readme file'''
'''The purpose of this function is to display a list of prerequisites to successfully render a readme file'''
uName = os.uname().nodename
uName = str(uName)
print("\n")
Expand Down

0 comments on commit 81ef680

Please sign in to comment.