resistics.project.utils module¶
-
resistics.project.utils.
checkDateOptions
(options: Dict, timeStart: datetime.datetime, timeStop: datetime.datetime) → bool[source]¶ Check to see if data contributes to user specified date range
- Parameters
- optionsDict
Options dictionary with start and stop options specified by user (if specified at all)
- timeStartdatetime
Start time of data
- timeStopdatetime
Stop time of data
- Returns
- bool
True if data contributes to the date range
-
resistics.project.utils.
projectBlock
(textLst: List[str]) → None[source]¶ Class information as a list of strings
- Parameters
- textLstlist[str]
List of strings with information
-
resistics.project.utils.
projectError
(errorStr: str, quitRun: bool = False) → None[source]¶ Error print to terminal and possibly quit
- Parameters
- errorStrstr
The string to print to the console
- quitRunbool, optional (False)
If True, the code will exit