Skip to content

Commit 052a73a

Browse files
committed
stdglue.py: Fix error on loading stdglue remaps using an R word.
(The previous code errored on attempted comparison between dict and float)
1 parent 7428898 commit 052a73a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nc_files/remap_lib/python-stdglue/stdglue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def cycle_prolog(self,**words):
358358
if not "r" in self.sticky_params[r.name]:
359359
return "%s: cycle requires R word" % (r.name)
360360
else:
361-
if self.sticky_params[r.name] <= 0.0:
361+
if self.sticky_params[r.name]['r'] <= 0.0:
362362
return "%s: R word must be > 0 if used (%.4f)" % (r.name, words["r"])
363363

364364
if "l" in words:

0 commit comments

Comments
 (0)