RMF includes functions to help cloning files an extracting parts.
RMF includes functions to help cloning files an extracting parts. They are also exposed through the rmf_slice application.
import RMF
in_name = RMF.get_example_path("3U7W.rmf")
out_name = RMF._get_temporary_file_path("3U7W.out.rmfz")
print("creating file", out_name)
for f in in_file.get_frames():
print("cloning frame", f)
in_file.set_current_frame(f)
out_file.add_frame(in_file.get_name(f), in_file.get_type(f))
void clone_loaded_frame(FileConstHandle input, FileHandle output)
void clone_static_frame(FileConstHandle input, FileHandle output)
FileHandle create_rmf_file(std::string path)
Create an RMF from a file system path.
FileConstHandle open_rmf_file_read_only(std::string path)
void clone_hierarchy(FileConstHandle input, FileHandle output)
void clone_file_info(FileConstHandle input, FileHandle output)