Ejemplo n.º 1
0
    def write_npy(self, npy_path):
        """
        Write TDS data into NumPy output files.

        TODO: Compress when the matrix is larger than 25 MB.
        """
        txyz_data = self.ts.txyz

        # if txyz_data.size > 3125000:  # 25 megabytes of flaot64
        #     np.savez_compressed(npy_path, txyz_data)
        # else:

        np.save(npy_path, txyz_data)
Ejemplo n.º 2
0
 def write_npy(self, file_path):
     """
     Write TDS data into NumPy uncompressed format.
     """
     txyz_data = self.ts.txyz
     np.save(file_path, txyz_data)
Ejemplo n.º 3
0
 def write_npy(self, npy_path):
     np.save(npy_path, self.ts.txyz)