@@ -0,0 +1,1371 @@
+# -*- coding: utf-8 -*-%0A%0A%22%22%22 Save and load MBSolve result data to and from files. %22%22%22%0A%0Afrom qutip import fileio%0Aimport numpy as np%0A%0Adef save_csv_rabi_freq(mb_solve, field_idx=0, filename=None):%0A    %22%22%22 Save the complex field Rabi frequency result for an MBSolve field.%0A%0A    Args:%0A        mb_solve :%0A            The MBSolve object%0A        field_idx :%0A            The field to save%0A        filename :%0A            The path to save to. The default will use the savefile value.%0A    %22%22%22%0A%0A    if not filename:%0A        filename = mb_solve.savefile + %22_rabi_freq_%22 + str(field_idx) + %5C%0A            %22.csv%22%0A%0A    fileio.file_data_store(filename=filename, numformat=%22exp%22, sep=%22,%22,%0A        data=mb_solve.Omegas_zt%5Bfield_idx%5D, numtype=%22complex%22)%0A%0Adef save_csv_rabi_freq_abs(mb_solve, field_idx=0, filename=None):%0A    %22%22%22 Save the abs value of the complex field Rabi frequency result for an%0A        MBSolve field.%0A%0A    Args:%0A        mb_solve :%0A            The MBSolve object%0A        field_idx :%0A            The field to save%0A        filename :%0A            The path to save to. The default will use the savefile value.%0A    %22%22%22%0A%0A    if not filename:%0A        filename = mb_solve.savefile + %22_rabi_freq_abs_%22 + str(field_idx) + %5C%0A            %22.csv%22%0A%0A    fileio.file_data_store(filename=filename, numformat=%22exp%22, sep=%22,%22,%0A        data=np.abs(mb_solve.Omegas_zt%5Bfield_idx%5D), numtype=%22real%22)%0A

Add fileio module and save to csv methods