simulariumio/medyan/medyan_converter.py
def _get_output_type_name(
        line: str, object_type: str, input_data: MedyanData
    ) -> bool:
        """
        Parse a line of a MEDYAN snapshot.traj output file
        and return the type name to display for this agent type
        """
        raw_tid = int(line.split()[2])
        return (
            input_data.display_data[object_type][raw_tid].name
            if raw_tid in input_data.display_data[object_type]
            else object_type + str(raw_tid)
        )

        Parse a line of a MEDYAN snapshot.traj output file
        and return the type name to display for this agent type
        
Parse a line of a MEDYAN snapshot.traj output file
and return the type name to display for this agent type
Parse a line of a MEDYAN snapshot . traj output file and return the type name to display for this agent type
def _get_output_type_name(
        line: str, object_type: str, input_data: MedyanData
    ) -> bool:
        raw_tid = int(line.split()[2])
        return (
            input_data.display_data[object_type][raw_tid].name
            if raw_tid in input_data.display_data[object_type]
            else object_type + str(raw_tid)
        )
def _get_output_type_name ( line : str , object_type : str , input_data : MedyanData ) -> bool : raw_tid = int ( line . split ( ) [ 2 ] ) return ( input_data . display_data [ object_type ] [ raw_tid ] . name if raw_tid in input_data . display_data [ object_type ] else object_type + str ( raw_tid ) )
Parse a line of a MEDYAN snapshot.traj output file
and return the type name to display for this agent type
Parse a line of a MEDYAN snapshot . traj output file and return the type name to display for this agent type
"""
        Parse a line of a MEDYAN snapshot.traj output file
        and return the type name to display for this agent type
        """
line
str
object_type
str
input_data
MedyanData