simulariumio/readdy/readdy_converter.py
def _read(input_data: ReaddyData) -> TrajectoryData:
        """
        Return an object containing the data shaped for Simularium format
        """
        print("Reading ReaDDy Data -------------")
        agent_data = ReaddyConverter._get_agent_data(input_data)
        # get display data (geometry and color)
        for tid in input_data.display_data:
            display_data = input_data.display_data[tid]
            agent_data.display_data[display_data.name] = display_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 an object containing the data shaped for Simularium format
        
Return an object containing the data shaped for Simularium format
Return an object containing the data shaped for Simularium format
def _read(input_data: ReaddyData) -> TrajectoryData:
        print("Reading ReaDDy Data -------------")
        agent_data = ReaddyConverter._get_agent_data(input_data)
        for tid in input_data.display_data:
            display_data = input_data.display_data[tid]
            agent_data.display_data[display_data.name] = display_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 : ReaddyData ) -> TrajectoryData : print ( "Reading ReaDDy Data -------------" ) agent_data = ReaddyConverter . _get_agent_data ( input_data ) for tid in input_data . display_data : display_data = input_data . display_data [ tid ] agent_data . display_data [ display_data . name ] = display_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 an object containing the data shaped for Simularium format
Return an object containing the data shaped for Simularium format
"""
        Return an object containing the data shaped for Simularium format
        """ # get display data (geometry and color)
input_data
ReaddyData