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

add CsstMsFile.move_to()

parent 1fb76a54
Pipeline #877 running with stage
in 0 seconds
......@@ -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,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment