python: logging

While one can use if-else statements, the use of logging and raising errors (raise) can be a better way to handle errors and warnings in complex projects for the following…

How to install miniconda on MacOS

source: https://docs.anaconda.com/free/miniconda/ # create parent directory miniconda3 mkdir -p ~/miniconda3 # download curl https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh -o ~/miniconda3/miniconda.sh # execute installation and updates bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3 # remove setup…

Conda cheatsheet

# CREATE CONDA ENVIRONMENT conda create -n [MY_ENV_NAME] # create conda environment conda create --name [MY_ENV_NAME] python=3.5 # create conda env with py version conda create -f env.yaml # create…