Beispiel #1
0
    def write_to(self, fname):
        """
        Writes the contents of an NmtWorkspace object to a FITS file.

        :param str fname: output file name
        """
        if self.wsp is None:
            raise RuntimeError("Must initialize workspace before writing")
        lib.write_workspace(self.wsp, "!" + fname)
Beispiel #2
0
    def write_to(self, fname):
        """
        Writes the contents of an NmtWorkspace object to a file (encoded using an internal binary format).

        :param str fname: output file name
        """
        if self.wsp is None:
            raise RuntimeError("Must initialize workspace before writing")
        lib.write_workspace(self.wsp, fname)