# Path: DiscEvolution/constants.py
# G = 1.
# AU = 1.496e13


import numpy as np
from .constants import yr
            self._Mdot_ext = restartdata['M_ext']
        except ValueError:
            pass
        try:
            self._Mdot_int = restartdata['M_int']
        except ValueError:
            pass
        try:
            self._Mcum_gas = restartdata['M_wg']
        except ValueError:
            pass

        # Dust-Only Parameters
        if self._dust:
            for threshold in self._dthresholds:
                try:
                    self._Rdust[threshold] = restartdata['R_{}'.format(int(float(threshold)*100))]
                except ValueError:
                    pass
            try:
                self._Mdust = restartdata['M_d']
            except ValueError:
                pass
            try:
                self._Mcum_dust = restartdata['M_wd']
            except ValueError:
                pass

    """Call"""
    def __call__(self, driver):

# Path: DiscEvolution/constants.py
# G = 1.
# AU = 1.496e13


# Path: DiscEvolution/history.py
import numpy as np
from .constants import yr

            self._Mdot_ext = restartdata['M_ext']
        except ValueError:
            pass
        try:
            self._Mdot_int = restartdata['M_int']
        except ValueError:
            pass
        try:
            self._Mcum_gas = restartdata['M_wg']
        except ValueError:
            pass

        # Dust-Only Parameters
        if self._dust:
            for threshold in self._dthresholds:
                try:
                    self._Rdust[threshold] = restartdata['R_{}'.format(int(float(threshold)*100))]
                except ValueError:
                    pass
            try:
                self._Mdust = restartdata['M_d']
            except ValueError:
                pass
            try:
                self._Mcum_dust = restartdata['M_wd']
            except ValueError:
                pass

    """Call"""
    def __call__(self, driver):

        self._times = np.append(self._times,[driver.t / yr])