"""
SimulationData for the ChromosomeStructure process
"""


class ChromosomeStructure:
    """
    SimulationData for the ChromosomeStructure process
    """

    def __init__(self, raw_data, sim_data):
        self._build_supercoiling_parameters(raw_data, sim_data)

    def _build_supercoiling_parameters(self, raw_data, sim_data):
        """
        Load parameters used for DNA supercoiling from raw_data.
        """
        for name, value in raw_data.dna_supercoiling.items():
            self.__setattr__(name, value)

        # Unique index used for dummy molecule at terC
        self.terC_dummy_molecule_index = -1
