# Path: blond/utils/bmath.py
# def use_mpi():
# def mpiMode():
# def use_fftw():
# def use_precision(_precision='double'):
# def update_active_dict(new_dict):


from builtins import range, object
from scipy.constants import c, physical_constants
from scipy.special import gamma as gamma_func
from scipy.special import kv, airy, polygamma
from scipy import integrate
from ..utils import bmath as bm
import numpy as np
import mpmath
        # Characteristic impedance of vacuum in* :math:`\Omega`
        self.Z0 = physical_constants['characteristic impedance of vacuum'][0]

    @property
    def resistivity(self):
        return self.__resistivity

    @resistivity.setter
    def resistivity(self, resistivity):
        self.__resistivity = resistivity
        self.__conductivity = 1 / resistivity

    @property
    def conductivity(self):
        return self.__conductivity

    @conductivity.setter
    def conductivity(self, conductivity):
        self.__resistivity = 1 / conductivity
        self.__conductivity = conductivity

    def imped_calc(self, frequency_array):
        r"""
        Impedance calculation method as a function of frequency.

        Parameters
        ----------
        frequency_array : float array
            Input frequency array in Hz


# Path: blond/utils/bmath.py
# def use_mpi():
# def mpiMode():
# def use_fftw():
# def use_precision(_precision='double'):
# def update_active_dict(new_dict):


# Path: blond/impedances/impedance_sources.py
from builtins import range, object
from scipy.constants import c, physical_constants
from scipy.special import gamma as gamma_func
from scipy.special import kv, airy, polygamma
from scipy import integrate
from ..utils import bmath as bm
import numpy as np
import mpmath

        # Characteristic impedance of vacuum in* :math:`\Omega`
        self.Z0 = physical_constants['characteristic impedance of vacuum'][0]

    @property
    def resistivity(self):
        return self.__resistivity

    @resistivity.setter
    def resistivity(self, resistivity):
        self.__resistivity = resistivity
        self.__conductivity = 1 / resistivity

    @property
    def conductivity(self):
        return self.__conductivity

    @conductivity.setter
    def conductivity(self, conductivity):
        self.__resistivity = 1 / conductivity
        self.__conductivity = conductivity

    def imped_calc(self, frequency_array):
        r"""
        Impedance calculation method as a function of frequency.

        Parameters
        ----------
        frequency_array : float array
            Input frequency array in Hz


        Attributes