simulariumio/data_objects/meta_data.py
def from_buffer_data(cls, buffer_data: Dict[str, Any]):
        """
        Create MetaData from a simularium JSON dict containing buffers
        """
        return cls(
            box_size=np.array(
                [
                    float(buffer_data["trajectoryInfo"]["size"]["x"]),
                    float(buffer_data["trajectoryInfo"]["size"]["y"]),
                    float(buffer_data["trajectoryInfo"]["size"]["z"]),
                ]
            ),
            camera_defaults=CameraData.from_buffer_data(buffer_data),
            trajectory_title=buffer_data["trajectoryInfo"]["trajectoryTitle"]
            if "trajectoryTitle" in buffer_data["trajectoryInfo"]
            else "",
            model_meta_data=ModelMetaData.from_buffer_data(buffer_data),
        )

        Create MetaData from a simularium JSON dict containing buffers
        
Create MetaData from a simularium JSON dict containing buffers
Create MetaData from a simularium JSON dict containing buffers
def from_buffer_data(cls, buffer_data: Dict[str, Any]):
        return cls(
            box_size=np.array(
                [
                    float(buffer_data["trajectoryInfo"]["size"]["x"]),
                    float(buffer_data["trajectoryInfo"]["size"]["y"]),
                    float(buffer_data["trajectoryInfo"]["size"]["z"]),
                ]
            ),
            camera_defaults=CameraData.from_buffer_data(buffer_data),
            trajectory_title=buffer_data["trajectoryInfo"]["trajectoryTitle"]
            if "trajectoryTitle" in buffer_data["trajectoryInfo"]
            else "",
            model_meta_data=ModelMetaData.from_buffer_data(buffer_data),
        )
def from_buffer_data ( cls , buffer_data : Dict [ str , Any ] ) : return cls ( box_size = np . array ( [ float ( buffer_data [ "trajectoryInfo" ] [ "size" ] [ "x" ] ) , float ( buffer_data [ "trajectoryInfo" ] [ "size" ] [ "y" ] ) , float ( buffer_data [ "trajectoryInfo" ] [ "size" ] [ "z" ] ) , ] ) , camera_defaults = CameraData . from_buffer_data ( buffer_data ) , trajectory_title = buffer_data [ "trajectoryInfo" ] [ "trajectoryTitle" ] if "trajectoryTitle" in buffer_data [ "trajectoryInfo" ] else "" , model_meta_data = ModelMetaData . from_buffer_data ( buffer_data ) , )
Create MetaData from a simularium JSON dict containing buffers
Create MetaData from a simularium JSON dict containing buffers
"""
        Create MetaData from a simularium JSON dict containing buffers
        """
cls
buffer_data
Dict[str, Any]