def save(self, out_path):
        """Save an ascii representation of this simulation trace.

        Args:
            out_path (str): The output path to save this simulation trace.
        """

        out = {
            'selectors': [str(x) for x in self.selectors],
            'trace': [{'stream': str(DataStream.FromEncoded(x.stream)), 'time': x.raw_time, 'value': x.value, 'reading_id': x.reading_id} for x in self]
        }

        with open(out_path, "wb") as outfile:
            json.dump(out, outfile, indent=4)
def save ( self , out_path ) : out = { 'selectors' : [ str ( x ) for x in self . selectors ] , 'trace' : [ { 'stream' : str ( DataStream . FromEncoded ( x . stream ) ) , 'time' : x . raw_time , 'value' : x . value , 'reading_id' : x . reading_id } for x in self ] } with open ( out_path , "wb" ) as outfile : json . dump ( out , outfile , indent = 4 )
Save an ascii representation of this simulation trace.

        Args:
            out_path (str): The output path to save this simulation trace.