ibfoamrig.core.find_time#

ibfoamrig.core.find_time(case_path, time)[source]#

Finds the time directory for a given time.

A string is matched against the dictionary names exactly. A number is matched by value with a relative tolerance.

Parameters:
  • case_path (StrPath) – Path to the case directory.

  • time (str | float) – Directory name or time value to look for.

Returns:

The matching time directory.

Raises:
Return type:

TimeDirectory