pywfm.misc.IWFMMiscellaneous#
- class pywfm.misc.IWFMMiscellaneous#
IWFM Miscellaneous Class for interacting with the IWFM API
- Returns:
instance of the IWFMMiscellaneous class and access to the IWFM Miscellaneous fortran procedures.
- Return type:
IWFMMiscellaneous Object
Note
This class is a base class and is not meant to be called directly. It is not provided with an __init__ method, so the self.dll used in each of the methods must be provided through the subclass.
- __init__()#
Methods
__init__
()the error message in case a procedure call from IWFM API returns an error code (status) other than 0
get_n_intervals
(begin_date, end_date, ...[, ...])returns the number of time intervals between a provided start date and end date
returns the version of the IWFM DLL
increment_time
(date_string, time_interval, ...)increments the date provided by the specified time interval
is_date_greater
(first_date, comparison_date)returns True if first_date is greater than comparison_date
prints the last error message (generated when a procedure call from IWFM API returns an error code (status) other than 0) to the message log file
set_log_file
([file_name])opens a text log file to print out error and warning messages