simulariumio/md/md_converter.py
def _get_radius(raw_type_name: str, input_data: MdData) -> float:
        """
        Get the radius to use for the particle with the given raw_type_name
        """
        if (
            raw_type_name in input_data.display_data
            and input_data.display_data[raw_type_name].radius is not None
        ):
            return input_data.display_data[raw_type_name].radius
        element_type = guess_atom_element(raw_type_name)
        if (
            element_type in input_data.display_data
            and input_data.display_data[element_type].radius is not None
        ):
            return input_data.display_data[element_type].radius
        if element_type in vdwradii:
            return vdwradii[element_type]
        return 1.0

        Get the radius to use for the particle with the given raw_type_name
        
Get the radius to use for the particle with the given raw_type_name
Get the radius to use for the particle with the given raw_type_name
def _get_radius(raw_type_name: str, input_data: MdData) -> float:
        if (
            raw_type_name in input_data.display_data
            and input_data.display_data[raw_type_name].radius is not None
        ):
            return input_data.display_data[raw_type_name].radius
        element_type = guess_atom_element(raw_type_name)
        if (
            element_type in input_data.display_data
            and input_data.display_data[element_type].radius is not None
        ):
            return input_data.display_data[element_type].radius
        if element_type in vdwradii:
            return vdwradii[element_type]
        return 1.0
def _get_radius ( raw_type_name : str , input_data : MdData ) -> float : if ( raw_type_name in input_data . display_data and input_data . display_data [ raw_type_name ] . radius is not None ) : return input_data . display_data [ raw_type_name ] . radius element_type = guess_atom_element ( raw_type_name ) if ( element_type in input_data . display_data and input_data . display_data [ element_type ] . radius is not None ) : return input_data . display_data [ element_type ] . radius if element_type in vdwradii : return vdwradii [ element_type ] return 1.0
Get the radius to use for the particle with the given raw_type_name
Get the radius to use for the particle with the given raw_type_name
"""
        Get the radius to use for the particle with the given raw_type_name
        """
raw_type_name
str
input_data
MdData