Menu

#64 pyFoamCaseReport -time

acknowledged
nobody
None
normal
minor
always
none
The Library
general
2011-05-15
2011-05-14
fabian6
No

Hi,

in pyFoamCaseReport the time option expects float. Another option like timeInt which expects integers would be quite helpfull.
Maybe something like

ŒŒŒŒŒŒŒ select.add_option("--timeInt",
ŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒ action="store",
ŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒ type="int",
ŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒ default=None,
ŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒ dest="time",
ŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒŒ help="Time to use as the basis for the reports")

I am not sure if this is needed for the other tools as well!?
Fabian

Discussion

  • Bernhard Gschaider

    I don't quite get the purpose of this. All times that happen to be integers also are floats so they are selectable

     
  • fabian6

    fabian6 - 2011-05-15

    I need to re-check what I did at office, but when they become float, they have trouble with time entries in integer format, like setting time=0
    this becomes internally 0.0

     
  • Bernhard Gschaider

    That is right. But as far as I remember the case-reporter looks for the timestep that is "nearest" and therefor should find the right (interger) timedata

     

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.