# Path: tilde/core/common.py
# class ModuleError(Exception):
#     def __init__(self, value):
#         self.value = value


import math
from tilde.core.common import ModuleError

# Calculation of atomic relaxations
# during atomic structure optimization
# Author: Evgeny Blokhin



class Atomic_relaxation():
    def __init__(self, tilde_calc):
        self.ardata = {}
        if len(tilde_calc.structures[0]) != len(tilde_calc.structures[-1]):

# Path: tilde/core/common.py
# class ModuleError(Exception):
#     def __init__(self, value):
#         self.value = value


# Path: tilde/apps/atomic_relaxation/atomic_relaxation.py
import math
from tilde.core.common import ModuleError


# Calculation of atomic relaxations
# during atomic structure optimization
# Author: Evgeny Blokhin



class Atomic_relaxation():
    def __init__(self, tilde_calc):
        self.ardata = {}
        if len(tilde_calc.structures[0]) != len(tilde_calc.structures[-1]):

            raise ModuleError('Different number of atoms before and after optimization!')