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

resistics.project.utils.projectText(infoStr: str) → None[source]

General print to terminal

Parameters
infoStrstr

The string to print to the console

resistics.project.utils.projectWarning(warnStr: str) → None[source]

Warning print to terminal

Parameters
warnStrstr

The string to print to the console