Skip to content

Commit

Permalink
More missed validation
Browse files Browse the repository at this point in the history
  • Loading branch information
TCallaghan2 committed Jan 22, 2025
1 parent 6e7fb58 commit ea65c99
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
25 changes: 0 additions & 25 deletions PythonScripts/GUI/GeoSAM/GeoSams.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,31 +330,6 @@ def Run_Sim(self):
messagebox.showerror("GeoSAM Sim", f'Failed\n{result.args}\nReturn Code = {result.returncode}')

##
# Interpolates the survey data onto the regional grids and saves results to CSV files.
# Concatenates CSV files into a single file. Then uses this file to plot the results
#
# Uses the following member variables
# self.domainName
# self.yearStart
# self.yearStop
# self.simConfigFile ( in call to ReadSimConfigFile)
# self.ukCfgFile
# self.paramStr
#
# prefix for the concatenated files, Output file name is in the form:
# Lat_Lon_Grid_ABUN_AL_2015_2017
# Matlab/Octave will also place the it results in a similar file name
# Lat_Lon_Grid_RECR_AL_2017_100_MA_North
# ^ Output parameter
# ^ Domain name
# ^ Year, yearStart to yearStop, e.g. 2014 initial data, 1 less than yearStart
# 2015 growth in yearStart
# ...
# 2017 growth in yearStop
# ^ Multiplier to normalize data
# ^ region
# ^ MA is divided into North and South to better display the data
#
def InterpAndPlotResults(self):
rets = 0
# year_start is initial state, yearStop represents the last year of simulation output
Expand Down
2 changes: 1 addition & 1 deletion PythonScripts/GUI/GeoSAM/MainInputFrame.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def SetHabCamFileEnvVar(self):
#
def OpenPDF(self):
# Checking to see if processing has been run
fName = os.path.join('Results', 'Lat_Lon_Grid_*.pdf')
fName = os.path.join('Results', '*.pdf')
fileList = glob.glob(fName)
if fileList:
fName = filedialog.askopenfilename(title="Open PDF File", filetypes=[("PDF files", "*.pdf")],
Expand Down

0 comments on commit ea65c99

Please sign in to comment.