generic_functions ¶
Functions from
TanayLabUtilities
which it is useful to make
available. In principle we should put these in a separate
TanayLabUtilities.py
wrapper package, but that’s too much of
a hassle.
- dafpy.generic_functions. AbnormalHandler ¶
-
The action to take when encountering an “abnormal” (but recoverable) operation. See the Julia documentation for details.
alias of
Union[Literal[‘IgnoreHandler’],Literal[‘WarnHandler’],Literal[‘ErrorHandler’]]
- dafpy.generic_functions. inefficient_action_handler ( handler : Literal [ 'IgnoreHandler' ] | Literal [ 'WarnHandler' ] | Literal [ 'ErrorHandler' ] ) Literal [ 'IgnoreHandler' ] | Literal [ 'WarnHandler' ] | Literal [ 'ErrorHandler' ] [source] ¶
-
Specify the
AbnormalHandlerto use when accessing a matrix in an inefficient way (“against the grain”). Returns the previous handler. See the Julia documentation for details.
- dafpy.generic_functions. LogLevel ¶
-
The (Julia) log levels.
alias of
Union[Literal[‘Debug’],Literal[‘Info’],Literal[‘Warn’],Literal[‘Error’],int]
- dafpy.generic_functions. setup_logger ( io: ~typing.TextIO = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'> , * , level: ~typing.Literal['Debug'] | ~typing.Literal['Info'] | ~typing.Literal['Warn'] | ~typing.Literal['Error'] | int = 'Warn' , show_time: bool = True , show_module: bool = True , show_location: bool = False ) None [source] ¶
-
Setup a global logger that will print into
io(which currently must be eithersys.stdoutorsys.stderr), printing messages with a timestamp prefix. See the Julia documentation for details.