pylab_ml.common.common
Created on Tue May 4 14:18:05 2021
This script is part of the pylab_ml package and contains common utility functions that can be used across the package. These functions include logging, process management, string command execution, array creation from string input, argument checking, value comparison, and terminal string coloring. The functions are designed to facilitate various tasks such as executing commands dynamically, checking values against targets with optional tolerance, and managing subprocesses.
Functions
|
Create an array from a string in a format similar to Matlab, |
|
Compare target with the acutal value with optional tolerance and mask. |
|
Check if the given arguments are valid. |
|
Check if the argument is in the list of valid arguments. |
|
Color a string for terminal output. |
|
|
|
This function executes the given code and returns the result of the last expression in the code. |
|
Kill a process and all its children. |
|
Print a message with a given log level, using the logger if set. |
|
Execute multiple commands given in a dictionary format, where keys are command strings and values are the corresponding values to use in the command. |
|
Set the logger for the package. |
|
Make a call from the command: |