Menu

#603 dynamicBase.py, setQuiet has wrong number arguments(?)

PCRaster-4.0.1
closed
nobody
8
2014-02-07
2014-01-27
Kor de Jong
No

A user (Julius Sumihar) reported the following. Check whether the fix makes sense and should be merged in sources or whether something else is going on. Report back to Julius.

Even ter info: het blijkt dat er een kleine bug nog zit op dynamicBase.py. Ik kreeg de volgende foutmelding hierdoor:

Exception in thread "main" java.lang.Exception: java.lang.RuntimeException:
java.lang.RuntimeException: WflowPythonToJavaAdapter:
exception during call to python code. Message was:
jep.JepException: <type 'exceptions.TypeError'>:
setQuiet() takes exactly 1 argument (2 given)

Deze bug heb ik opgelost door de definitie van setQuiet in het dynamicBase.py te vervangen met het volgende:

def setQuiet(self, quiet=True):
    """
    Disables the progress display of timesteps.
    """
    self.silentModelOutput = quiet

Discussion

  • Oliver Schmitz

    Oliver Schmitz - 2014-02-03
    • status: open --> accepted
     
  • Oliver Schmitz

    Oliver Schmitz - 2014-02-07
    • status: accepted --> closed
     
  • Oliver Schmitz

    Oliver Schmitz - 2014-02-07

    reasonable suggestion incorporated

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.