simulariumio/trajectory_converter.py
def write_JSON(self, output_path: str):
        """
        Save the current simularium data in .simularium JSON format
        at the output path

        Parameters
        ----------
        output_path: str
            where to save the file
        """
        print("Writing JSON -------------")
        buffer_data = TrajectoryConverter._read_trajectory_data(self._data)
        with open(f"{output_path}.simularium", "w+") as outfile:
            json.dump(buffer_data, outfile)
        print(f"saved to {output_path}.simularium")

        Save the current simularium data in .simularium JSON format
        at the output path

        Parameters
        ----------
        output_path: str
            where to save the file
        
Save the current simularium data in .simularium JSON format
at the output path

Parameters

str
where to save the file
Save the current simularium data in . simularium JSON format at the output path Parameters str where to save the file
def write_JSON(self, output_path: str):
        print("Writing JSON -------------")
        buffer_data = TrajectoryConverter._read_trajectory_data(self._data)
        with open(f"{output_path}.simularium", "w+") as outfile:
            json.dump(buffer_data, outfile)
        print(f"saved to {output_path}.simularium")
def write_JSON ( self , output_path : str ) : print ( "Writing JSON -------------" ) buffer_data = TrajectoryConverter . _read_trajectory_data ( self . _data ) with open ( f"{output_path}.simularium" , "w+" ) as outfile : json . dump ( buffer_data , outfile ) print ( f"saved to {output_path}.simularium" )
Save the current simularium data in .simularium JSON format
at the output path
Save the current simularium data in . simularium JSON format at the output path
"""
        Save the current simularium data in .simularium JSON format
        at the output path

        Parameters
        ----------
        output_path: str
            where to save the file
        """
self
output_path
str