It can often be useful to save the assignments to a file. IMP
provides support to do this to an a data set in an hdf5 file.
You can use h5dump
to view the contents of the created file.
15 file_name = IMP.create_temporary_file_name(
"assignments",
".asn")
17 print(
"File name is", file_name)
37 if back_asl.get_assignments() == written:
40 print(back_asl.get_assignments())
42 raise RuntimeError(
"They don't match :-(")
53 print(
"Note the subsets are differently ordered (most of the time): ", ss, ssp)
58 print([str(a)
for a
in back_aslp.get_assignments()])