simulariumio/md/md_converter.py
def _read(input_data: MdData) -> TrajectoryData:
        """
        Return a TrajectoryData object containing the MD data
        """
        print("Reading MD Data -------------")
        # get data from the MD Universe
        agent_data = MdConverter._read_universe(input_data)
        # create TrajectoryData
        input_data.spatial_units.multiply(1.0 / input_data.meta_data.scale_factor)
        input_data.meta_data._set_box_size()
        return TrajectoryData(
            meta_data=input_data.meta_data,
            agent_data=agent_data,
            time_units=input_data.time_units,
            spatial_units=input_data.spatial_units,
            plots=input_data.plots,
        )

        Return a TrajectoryData object containing the MD data
        
Return a TrajectoryData object containing the MD data
Return a TrajectoryData object containing the MD data
def _read(input_data: MdData) -> TrajectoryData:
        print("Reading MD Data -------------")
        agent_data = MdConverter._read_universe(input_data)
        input_data.spatial_units.multiply(1.0 / input_data.meta_data.scale_factor)
        input_data.meta_data._set_box_size()
        return TrajectoryData(
            meta_data=input_data.meta_data,
            agent_data=agent_data,
            time_units=input_data.time_units,
            spatial_units=input_data.spatial_units,
            plots=input_data.plots,
        )
def _read ( input_data : MdData ) -> TrajectoryData : print ( "Reading MD Data -------------" ) agent_data = MdConverter . _read_universe ( input_data ) input_data . spatial_units . multiply ( 1.0 / input_data . meta_data . scale_factor ) input_data . meta_data . _set_box_size ( ) return TrajectoryData ( meta_data = input_data . meta_data , agent_data = agent_data , time_units = input_data . time_units , spatial_units = input_data . spatial_units , plots = input_data . plots , )
Return a TrajectoryData object containing the MD data
Return a TrajectoryData object containing the MD data
"""
        Return a TrajectoryData object containing the MD data
        """ # get data from the MD Universe # create TrajectoryData
input_data
MdData