Commit ed91880b authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

add CsstMsFile.move_to()

parent 1fb76a54
Loading
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1138,6 +1138,14 @@ class CsstMsFile(dict):
            header=header
        )

    def move_to(self, dir_in="./input", dir_out="./output"):
        return CsstMsFile(
            filepath=os.path.join(dir_in, os.path.basename(self.filepath)),
            ver_sim=self.ver_sim,
            dir_out=dir_out,
            **self.kwargs
        )

    def to_dict(self):
        return dict(
            filepath=self.filepath,