Skip to content

Commit

Permalink
stdglue.py: Fix error on loading stdglue remaps using an R word.
Browse files Browse the repository at this point in the history
(The previous code errored on attempted comparison between dict and float)
  • Loading branch information
andypugh committed Dec 15, 2023
1 parent 7428898 commit 052a73a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nc_files/remap_lib/python-stdglue/stdglue.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def cycle_prolog(self,**words):
if not "r" in self.sticky_params[r.name]:
return "%s: cycle requires R word" % (r.name)
else:
if self.sticky_params[r.name] <= 0.0:
if self.sticky_params[r.name]['r'] <= 0.0:
return "%s: R word must be > 0 if used (%.4f)" % (r.name, words["r"])

if "l" in words:
Expand Down

0 comments on commit 052a73a

Please sign in to comment.