Module contents
Utility and helper methods (Logging system, version checkers, code timers…).
Classes on this package CAN’T include any dependency to an external library (Keras,
PySide2, etc). This is for ensuring that this package can be safely imported on early
stages of the app initialization.
For defining custom classes that extends these libraries, please go to the misc
package.
-
class
dial_core.utils.
Timer
[source]
Bases: object
Class used for timing the milliseconds elapsed on a block of code.
Variables: |
- start – Moment in time when the execution started.
- end – Moment in time when the execution finished.
- running – If the block of code is still being executed.
|
-
__enter__
()[source]
Starts tracking time.
-
__exit__
(*args)[source]
Stops tracking time.
-
elapsed
()[source]
Get the elapsed time (in milliseconds).
-
interval
()[source]
Returns the interval betweent the start and end
-
class
dial_core.utils.
Dial
[source]
Bases: enum.Enum
The Dial class contains several identifiers used throughout the application.
-
KerasLayerListMIME
= 'application/keras.layer.list'