GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix statvar name typo · PRMS-Python/PRMS-Python@ccb57a4

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • prms_python
    • optimizer.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎prms_python/optimizer.py‎

Copy file name to clipboardExpand all lines: prms_python/optimizer.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def srad(self, reference_srad_path, station_nhru, n_sims=10, method='',\
109109
if station_nhru == 'basin':
110110
self.srad_hru = 'basin_swrad_1'
111111
else: # get variable at a specific hru
112-
self.srad_hru = 'swrad_{}'.format(station_hru)
112+
self.srad_hru = 'swrad_{}'.format(station_nhru)
113113

114114
srad_start_time = dt.datetime.now()
115115
srad_start_time = srad_start_time.replace(second=0, microsecond=0)
@@ -298,11 +298,11 @@ def plot_optimization(self, stage, freq='daily', method='time_series',\
298298
if (stage=='swrad'):
299299
if not self.srad_outputs:
300300
raise ValueError('You have not run any srad optimizations')
301-
var_name = self.srad_hru
301+
var_name = self.srad_hru # name in statvar file
302302
#indices that measured and simulated share (intersection)
303303
X = self.measured_srad
304304
idx = X.index.intersection(self.srad_outputs[0]['statvar']\
305-
['{}_{}'.format(stage, self.srad_hru)].index)
305+
['{}'.format(var_name)].index)
306306
X = X[idx]
307307
orig = load_statvar(OPJ(self.input_dir, 'statvar.dat'))['{}'\
308308
.format(var_name)][idx]

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.