# --------------------------------------------------------
# P2ORM: Formulation, Inference & Application
# Licensed under The MIT License [see LICENSE for details]
# Written by <NAME>
# --------------------------------------------------------

from __future__ import print_function, division


def print_and_log(string, logger):
    print(string)
    if logger:
        logger.info(string)

# --------------------------------------------------------
# P2ORM: Formulation, Inference & Application
# Licensed under The MIT License [see LICENSE for details]
# Written by <NAME>
# --------------------------------------------------------

from __future__ import print_function, division


def print_and_log(string, logger):
    print(string)
    if logger:
        logger.info(string)

# -------------------------------------------------------- # P2ORM: Formulation, Inference & Application # Licensed under The MIT License [see LICENSE for details] # Written by <NAME> # --------------------------------------------------------