Write all magnetic space groups to a human-readable text file.
    Should contain same information as text files provided by ISO-MAG.
    :param filename: 
    :return:

def _write_all_magnetic_space_groups_to_file(filename):
    """
    Write all magnetic space groups to a human-readable text file.
    Should contain same information as text files provided by ISO-MAG.
    :param filename: 
    :return: 
    """
    s = ('Data parsed from raw data from:\n'
         'ISO-MAG, ISOTROPY Software Suite, iso.byu.edu\n'
         'http://stokes.byu.edu/iso/magnetic_data.txt\n'
         'Used with kind permission from Professor Branton Campbell, BYU\n\n')
    all_msgs = []
    for i in range(1, 1652):
        all_msgs.append(MagneticSpaceGroup(i))
    for msg in all_msgs:
        s += '\n{}\n\n--------\n'.format(msg.data_str())
    f = open(filename, 'w')
    f.write(s)
    f.close()